summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-18 08:18:52 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-03-18 08:18:52 +0000
commite5335f63f88d5f8ba053022f3a0b862852f954ac (patch)
treeb036b4245f8e54261d8478a779fc4d10784b386e
parent8167fb88eba3d07ebb38c1e97ead6122f5acdc26 (diff)
automatic import of R-CRAN-dotgenf38
-rw-r--r--.gitignore1
-rw-r--r--R-CRAN-dotgen.spec53
-rw-r--r--sources1
3 files changed, 55 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..14f11ae 100644
--- a/.gitignore
+++ b/.gitignore
@@ -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}
diff --git a/sources b/sources
new file mode 100644
index 0000000..e9e3bf8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+cbcd6a9d15dfb50d787bd2f079b403d6 dotgen_0.1.0.tar.gz