mirror of
https://github.com/BioArchLinux/Packages.git
synced 2025-03-10 12:02:42 +00:00
r-scmet: init
This commit is contained in:
parent
2320793ea3
commit
6bea5bd571
6 changed files with 181 additions and 0 deletions
42
BioArchLinux/r-logitnorm/PKGBUILD
Normal file
42
BioArchLinux/r-logitnorm/PKGBUILD
Normal file
|
@ -0,0 +1,42 @@
|
||||||
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||||
|
|
||||||
|
_pkgname=logitnorm
|
||||||
|
_pkgver=0.8.38
|
||||||
|
pkgname=r-${_pkgname,,}
|
||||||
|
pkgver=${_pkgver//-/.}
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Functions for the Logitnormal Distribution"
|
||||||
|
arch=(any)
|
||||||
|
url="https://cran.r-project.org/package=${_pkgname}"
|
||||||
|
license=(GPL2)
|
||||||
|
depends=(
|
||||||
|
r
|
||||||
|
)
|
||||||
|
checkdepends=(
|
||||||
|
r-runit
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
r-ggplot2
|
||||||
|
r-knitr
|
||||||
|
r-markdown
|
||||||
|
r-reshape2
|
||||||
|
r-runit
|
||||||
|
)
|
||||||
|
source=("https://cran.r-project.org/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
|
md5sums=('4a1f49249dcd7a212287a1ac6b4e1921')
|
||||||
|
sha256sums=('38f55427955625d17ea5e92267d2549f3f2a21f3c3ee228d81c181dc80d05b07')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
mkdir -p build
|
||||||
|
R CMD INSTALL "$_pkgname" -l build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$_pkgname/tests"
|
||||||
|
R_LIBS="$srcdir/build" Rscript --vanilla doRUnit.R
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -d "$pkgdir/usr/lib/R/library"
|
||||||
|
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||||
|
}
|
14
BioArchLinux/r-logitnorm/lilac.py
Normal file
14
BioArchLinux/r-logitnorm/lilac.py
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
from lilaclib import *
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||||
|
from lilac_r_utils import r_pre_build
|
||||||
|
|
||||||
|
def pre_build():
|
||||||
|
r_pre_build(_G)
|
||||||
|
|
||||||
|
def post_build():
|
||||||
|
git_pkgbuild_commit()
|
||||||
|
update_aur_repo()
|
12
BioArchLinux/r-logitnorm/lilac.yaml
Normal file
12
BioArchLinux/r-logitnorm/lilac.yaml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
build_prefix: extra-x86_64
|
||||||
|
maintainers:
|
||||||
|
- github: pekkarr
|
||||||
|
email: pekkarr@protonmail.com
|
||||||
|
repo_makedepends:
|
||||||
|
- r-runit
|
||||||
|
update_on:
|
||||||
|
- source: rpkgs
|
||||||
|
pkgname: logitnorm
|
||||||
|
repo: cran
|
||||||
|
md5: true
|
||||||
|
- alias: r
|
62
BioArchLinux/r-scmet/PKGBUILD
Normal file
62
BioArchLinux/r-scmet/PKGBUILD
Normal file
|
@ -0,0 +1,62 @@
|
||||||
|
# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
|
||||||
|
|
||||||
|
_pkgname=scMET
|
||||||
|
_pkgver=1.4.0
|
||||||
|
pkgname=r-${_pkgname,,}
|
||||||
|
pkgver=${_pkgver//-/.}
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="Bayesian modelling of cell-to-cell DNA methylation heterogeneity"
|
||||||
|
arch=(x86_64)
|
||||||
|
url="https://bioconductor.org/packages/${_pkgname}"
|
||||||
|
license=(GPL3)
|
||||||
|
depends=(
|
||||||
|
r-assertthat
|
||||||
|
r-biocstyle
|
||||||
|
r-coda
|
||||||
|
r-cowplot
|
||||||
|
r-data.table
|
||||||
|
r-dplyr
|
||||||
|
r-ggplot2
|
||||||
|
r-logitnorm
|
||||||
|
r-matrixstats
|
||||||
|
r-rcpp
|
||||||
|
r-rcppparallel
|
||||||
|
r-rstan
|
||||||
|
r-rstantools
|
||||||
|
r-s4vectors
|
||||||
|
r-singlecellexperiment
|
||||||
|
r-summarizedexperiment
|
||||||
|
r-vgam
|
||||||
|
r-viridis
|
||||||
|
)
|
||||||
|
makedepends=(
|
||||||
|
r-bh
|
||||||
|
r-rcppeigen
|
||||||
|
r-stanheaders
|
||||||
|
)
|
||||||
|
checkdepends=(
|
||||||
|
r-testthat
|
||||||
|
)
|
||||||
|
optdepends=(
|
||||||
|
r-knitr
|
||||||
|
r-rmarkdown
|
||||||
|
r-testthat
|
||||||
|
)
|
||||||
|
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
|
||||||
|
md5sums=('6420a2af7464f67eb676f06d20f9d5a6')
|
||||||
|
sha256sums=('b4908e98a14b2a3ed26b52648a5ae025711676d8d06ad30a16bbfd0cc5007f2a')
|
||||||
|
|
||||||
|
build() {
|
||||||
|
mkdir -p build
|
||||||
|
R CMD INSTALL "$_pkgname" -l build
|
||||||
|
}
|
||||||
|
|
||||||
|
check() {
|
||||||
|
cd "$_pkgname/tests"
|
||||||
|
R_LIBS="$srcdir/build" NOT_CRAN=true Rscript --vanilla testthat.R
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
install -d "$pkgdir/usr/lib/R/library"
|
||||||
|
cp -a --no-preserve=ownership "build/$_pkgname" "$pkgdir/usr/lib/R/library"
|
||||||
|
}
|
17
BioArchLinux/r-scmet/lilac.py
Normal file
17
BioArchLinux/r-scmet/lilac.py
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
from lilaclib import *
|
||||||
|
|
||||||
|
import os
|
||||||
|
import sys
|
||||||
|
sys.path.append(os.path.normpath(f'{__file__}/../../../lilac-extensions'))
|
||||||
|
from lilac_r_utils import r_pre_build
|
||||||
|
|
||||||
|
def pre_build():
|
||||||
|
r_pre_build(
|
||||||
|
_G,
|
||||||
|
expect_systemrequirements = "GNU make",
|
||||||
|
)
|
||||||
|
|
||||||
|
def post_build():
|
||||||
|
git_pkgbuild_commit()
|
||||||
|
update_aur_repo()
|
34
BioArchLinux/r-scmet/lilac.yaml
Normal file
34
BioArchLinux/r-scmet/lilac.yaml
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
build_prefix: extra-x86_64
|
||||||
|
maintainers:
|
||||||
|
- github: pekkarr
|
||||||
|
email: pekkarr@protonmail.com
|
||||||
|
repo_depends:
|
||||||
|
- r-assertthat
|
||||||
|
- r-biocstyle
|
||||||
|
- r-coda
|
||||||
|
- r-cowplot
|
||||||
|
- r-data.table
|
||||||
|
- r-dplyr
|
||||||
|
- r-ggplot2
|
||||||
|
- r-logitnorm
|
||||||
|
- r-matrixstats
|
||||||
|
- r-rcpp
|
||||||
|
- r-rcppparallel
|
||||||
|
- r-rstan
|
||||||
|
- r-rstantools
|
||||||
|
- r-s4vectors
|
||||||
|
- r-singlecellexperiment
|
||||||
|
- r-summarizedexperiment
|
||||||
|
- r-vgam
|
||||||
|
- r-viridis
|
||||||
|
repo_makedepends:
|
||||||
|
- r-bh
|
||||||
|
- r-rcppeigen
|
||||||
|
- r-stanheaders
|
||||||
|
- r-testthat
|
||||||
|
update_on:
|
||||||
|
- source: rpkgs
|
||||||
|
pkgname: scMET
|
||||||
|
repo: bioc
|
||||||
|
md5: true
|
||||||
|
- alias: r
|
Loading…
Add table
Reference in a new issue