Skip to content

Commit

Permalink
sync
Browse files Browse the repository at this point in the history
  • Loading branch information
Enchufa2 committed Jul 23, 2024
1 parent 3b3a318 commit f591943
Show file tree
Hide file tree
Showing 33 changed files with 601 additions and 102 deletions.
74 changes: 74 additions & 0 deletions specs/R-CRAN-GeneNMF.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname GeneNMF
%global packver 0.6.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.6.0
Release: 1%{?dist}%{?buildtag}
Summary: Non-Negative Matrix Factorization for Single-Cell Omics

License: GPL-3
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel >= 4.3.0
Requires: R-core >= 4.3.0
BuildArch: noarch
BuildRequires: R-CRAN-Seurat >= 4.3.0
BuildRequires: R-CRAN-RcppML
BuildRequires: R-CRAN-Matrix
BuildRequires: R-stats
BuildRequires: R-methods
BuildRequires: R-utils
BuildRequires: R-CRAN-cluster
BuildRequires: R-CRAN-lsa
BuildRequires: R-CRAN-irlba
BuildRequires: R-CRAN-pheatmap
BuildRequires: R-CRAN-viridis
Requires: R-CRAN-Seurat >= 4.3.0
Requires: R-CRAN-RcppML
Requires: R-CRAN-Matrix
Requires: R-stats
Requires: R-methods
Requires: R-utils
Requires: R-CRAN-cluster
Requires: R-CRAN-lsa
Requires: R-CRAN-irlba
Requires: R-CRAN-pheatmap
Requires: R-CRAN-viridis

%description
A collection of methods to extract gene programs from single-cell gene
expression data using non-negative matrix factorization (NMF). 'GeneNMF'
contains functions to directly interact with the 'Seurat' toolkit and
derive interpretable gene program signatures.

%prep
%setup -q -c -n %{packname}

# fix end of executable files
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
# prevent binary stripping
[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \
sed -i 's@-g0@@g' {} \; || true
# don't allow local prefix in executable scripts
find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \;

%build

%install

mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
# remove buildroot from installed files
find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \;

%files
%{rlibdir}/%{packname}
4 changes: 2 additions & 2 deletions specs/R-CRAN-HDRFA.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname HDRFA
%global packver 0.1.4
%global packver 0.1.5
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.4
Version: 0.1.5
Release: 1%{?dist}%{?buildtag}
Summary: High-Dimensional Robust Factor Analysis

Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-MetaHD.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname MetaHD
%global packver 0.1.1
%global packver 0.1.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.1
Version: 0.1.2
Release: 1%{?dist}%{?buildtag}
Summary: A Multivariate Meta-Analysis Model for Metabolomics Data

Expand Down
61 changes: 61 additions & 0 deletions specs/R-CRAN-StuteTest.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname StuteTest
%global packver 1.0.2
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.0.2
Release: 1%{?dist}%{?buildtag}
Summary: Stute (1997) Linearity Test

License: MIT + file LICENSE
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel
Requires: R-core
BuildRequires: R-CRAN-Rcpp >= 1.0.12
BuildRequires: R-CRAN-dplyr
BuildRequires: R-CRAN-plm
BuildRequires: R-CRAN-rnames
BuildRequires: R-stats
BuildRequires: R-CRAN-RcppArmadillo
Requires: R-CRAN-Rcpp >= 1.0.12
Requires: R-CRAN-dplyr
Requires: R-CRAN-plm
Requires: R-CRAN-rnames
Requires: R-stats

%description
Non-parametric test, originally proposed by Stute (1997)
<https://www.jstor.org/stable/2242560>, that the expectation of a
dependent variable Y given an independent variable D is linear in D.

%prep
%setup -q -c -n %{packname}

# fix end of executable files
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
# prevent binary stripping
[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \
sed -i 's@-g0@@g' {} \; || true
# don't allow local prefix in executable scripts
find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \;

%build

%install

mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
# remove buildroot from installed files
find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \;

%files
%{rlibdir}/%{packname}
4 changes: 2 additions & 2 deletions specs/R-CRAN-UKB.COVID19.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname UKB.COVID19
%global packver 0.1.4
%global packver 0.1.5
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.4
Version: 0.1.5
Release: 1%{?dist}%{?buildtag}
Summary: UK Biobank COVID-19 Data Processing and Risk Factor Association Tests

Expand Down
54 changes: 54 additions & 0 deletions specs/R-CRAN-aka.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname aka
%global packver 0.1.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.1.0
Release: 1%{?dist}%{?buildtag}
Summary: Define Aliases for R Expressions

License: MIT + file LICENSE
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel
Requires: R-core
BuildArch: noarch

%description
Create aliases for other R names or arbitrarily complex R expressions.
Accessing the alias acts as-if the aliased expression were invoked
instead, and continuously reflects the current value of that expression:
updates to the original expression will be reflected in the alias; and
updates to the alias will automatically be reflected in the original
expression.

%prep
%setup -q -c -n %{packname}

# fix end of executable files
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
# prevent binary stripping
[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \
sed -i 's@-g0@@g' {} \; || true
# don't allow local prefix in executable scripts
find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \;

%build

%install

mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
# remove buildroot from installed files
find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \;

%files
%{rlibdir}/%{packname}
4 changes: 2 additions & 2 deletions specs/R-CRAN-brea.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname brea
%global packver 0.3.0
%global packver 0.3.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 0.3.0
Version: 0.3.1
Release: 1%{?dist}%{?buildtag}
Summary: Bayesian Recurrent Events Analysis

Expand Down
80 changes: 80 additions & 0 deletions specs/R-CRAN-bsvarSIGNs.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname bsvarSIGNs
%global packver 1.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.0
Release: 1%{?dist}%{?buildtag}
Summary: Bayesian SVARs with Sign, Zero, and Narrative Restrictions

License: GPL (>= 3)
URL: https://cran.r-project.org/package=%{packname}
Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz


BuildRequires: R-devel >= 2.10
Requires: R-core >= 2.10
BuildRequires: R-CRAN-Rcpp >= 1.0.12
BuildRequires: R-CRAN-RcppArmadillo
BuildRequires: R-CRAN-bsvars
BuildRequires: R-CRAN-RcppProgress
BuildRequires: R-CRAN-R6
Requires: R-CRAN-Rcpp >= 1.0.12
Requires: R-CRAN-RcppArmadillo
Requires: R-CRAN-bsvars
Requires: R-CRAN-RcppProgress
Requires: R-CRAN-R6

%description
Implements state-of-the-art algorithms for the Bayesian analysis of
Structural Vector Autoregressions (SVARs) identified by sign, zero, and
narrative restrictions. The core model is based on a flexible Vector
Autoregression with estimated hyper-parameters of the Minnesota prior and
the dummy observation priors as in Giannone, Lenza, Primiceri (2015)
<doi:10.1162/REST_a_00483>. The sign restrictions are implemented
employing the methods proposed by Rubio-Ramírez, Waggoner & Zha (2010)
<doi:10.1111/j.1467-937X.2009.00578.x>, while identification through sign
and zero restrictions follows the approach developed by Arias,
Rubio-Ramírez, & Waggoner (2018) <doi:10.3982/ECTA14468>. Furthermore, our
tool provides algorithms for identification via sign and narrative
restrictions, in line with the methods introduced by Antolín-Díaz and
Rubio-Ramírez (2018) <doi:10.1257/aer.20161852>. Users can also estimate a
model with sign, zero, and narrative restrictions imposed at once. The
package facilitates predictive and structural analyses using impulse
responses, forecast error variance and historical decompositions,
forecasting and conditional forecasting, as well as analyses of structural
shocks and fitted values. All this is complemented by colourful plots,
user-friendly summary functions, and comprehensive documentation. The
'bsvarSIGNs' package is aligned regarding objects, workflows, and code
structure with the R package 'bsvars' by Woźniak (2024)
<doi:10.32614/CRAN.package.bsvars>, and they constitute an integrated
toolset.

%prep
%setup -q -c -n %{packname}

# fix end of executable files
find -type f -executable -exec grep -Iq . {} \; -exec sed -i -e '$a\' {} \;
# prevent binary stripping
[ -d %{packname}/src ] && find %{packname}/src -type f -exec \
sed -i 's@/usr/bin/strip@/usr/bin/true@g' {} \; || true
[ -d %{packname}/src ] && find %{packname}/src/Make* -type f -exec \
sed -i 's@-g0@@g' {} \; || true
# don't allow local prefix in executable scripts
find -type f -executable -exec sed -Ei 's@#!( )*/usr/local/bin@#!/usr/bin@g' {} \;

%build

%install

mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css
# remove buildroot from installed files
find %{buildroot}%{rlibdir} -type f -exec sed -i "s@%{buildroot}@@g" {} \;

%files
%{rlibdir}/%{packname}
4 changes: 2 additions & 2 deletions specs/R-CRAN-dafishr.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname dafishr
%global packver 1.0.0
%global packver 1.0.1
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.0.0
Version: 1.0.1
Release: 1%{?dist}%{?buildtag}
Summary: Download, Wrangle, and Analyse Vessel Monitoring System Data

Expand Down
4 changes: 2 additions & 2 deletions specs/R-CRAN-dsem.spec
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
%global __brp_check_rpaths %{nil}
%global __requires_exclude ^libmpi
%global packname dsem
%global packver 1.2.1
%global packver 1.3.0
%global rlibdir /usr/local/lib/R/library

Name: R-CRAN-%{packname}
Version: 1.2.1
Version: 1.3.0
Release: 1%{?dist}%{?buildtag}
Summary: Fit Dynamic Structural Equation Models

Expand Down
Loading

0 comments on commit f591943

Please sign in to comment.