diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-04-26 05:52:41 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2024-04-26 05:52:41 +0000 |
commit | 6b501e6dccb7dedfba7b4869060f0c422161e66f (patch) | |
tree | b036b4245f8e54261d8478a779fc4d10784b386e | |
parent | 8167fb88eba3d07ebb38c1e97ead6122f5acdc26 (diff) |
automatic import of R-CRAN-dotgen
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | R-CRAN-dotgen.spec | 53 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 55 insertions, 0 deletions
@@ -0,0 +1 @@ +/dotgen_0.1.0.tar.gz diff --git a/R-CRAN-dotgen.spec b/R-CRAN-dotgen.spec new file mode 100644 index 0000000..ac8daf0 --- /dev/null +++ b/R-CRAN-dotgen.spec @@ -0,0 +1,53 @@ +%global __brp_check_rpaths %{nil} +%global packname dotgen +%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: Gene-Set Analysis via Decorrelation by Orthogonal Transformation + +License: GPL (>= 2) +URL: https://cran.r-project.org/package=%{packname} +Source0: %{url}&version=%{packver}#/%{packname}_%{packver}.tar.gz + + +BuildRequires: R-devel >= 3.5.0 +Requires: R-core >= 3.5.0 +BuildArch: noarch +BuildRequires: R-CRAN-mvtnorm +Requires: R-CRAN-mvtnorm + +%description +Decorrelates a set of summary statistics (i.e., Z-scores or P-values per +SNP) via Decorrelation by Orthogonal Transformation (DOT) approach and +performs gene-set analyses by combining transformed statistic values; +operations are performed with algorithms that rely only on the association +summary results and the linkage disequilibrium (LD). For more details on +DOT and its power, see Olga (2020) <doi:10.1371/journal.pcbi.1007819>. + +%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 +# 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} @@ -0,0 +1 @@ +cbcd6a9d15dfb50d787bd2f079b403d6 dotgen_0.1.0.tar.gz |