-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
601 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.