Packages/BioArchLinux/r-demuxsnp/PKGBUILD
2024-01-17 21:45:55 +02:00

59 lines
1.3 KiB
Bash

# Maintainer: Pekka Ristola <pekkarr [at] protonmail [dot] com>
_pkgname=demuxSNP
_pkgver=1.0.0
pkgname=r-${_pkgname,,}
pkgver=${_pkgver//-/.}
pkgrel=2
pkgdesc="scRNAseq demultiplexing using cell hashing and SNPs"
arch=(any)
url="https://bioconductor.org/packages/$_pkgname"
license=('GPL-3.0-only')
depends=(
r-biocgenerics
r-combinat
r-demuxmix
r-ensembldb
r-genomeinfodb
r-iranges
r-matrixgenerics
r-singlecellexperiment
r-summarizedexperiment
r-variantannotation
)
checkdepends=(
r-ensdb.hsapiens.v86
r-seurat
r-testthat
)
optdepends=(
r-biocstyle
r-complexheatmap
r-dittoseq
r-ensdb.hsapiens.v86
r-ggpubr
r-knitr
r-refmanager
r-rmarkdown
r-seurat
r-testthat
r-viridislite
)
source=("https://bioconductor.org/packages/release/bioc/src/contrib/${_pkgname}_${_pkgver}.tar.gz")
md5sums=('66a0ed302acbc18c7a106d99bf645133')
b2sums=('eb2a41ca87b50cd53d98fa5de81ee0c75d6d356c100d5f49e1108cf6aeea73ec7aaaa090f23b92dbd0494253368e8996236a62ffa38e6612f32e09d9a63a5f21')
build() {
mkdir build
R CMD INSTALL -l build "$_pkgname"
}
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"
}