-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bulk: Add new recipe for Souporcell (#50608)
* add scripts * update scripts * update scripts * fix linting error * fix checksum * remove uncomment * add resource * clean up recipe --------- Co-authored-by: wxicu <[email protected]> Co-authored-by: mencian <[email protected]> Co-authored-by: Joshua Zhuang <[email protected]> Co-authored-by: Xichen Wu <[email protected]>
- Loading branch information
1 parent
aa7c717
commit f74ba24
Showing
2 changed files
with
86 additions
and
0 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,22 @@ | ||
#!/bin/bash -euo | ||
|
||
mkdir -p ${PREFIX}/bin | ||
|
||
export CFLAGS="${CFLAGS} -fcommon" | ||
export CXXFLAGS="${CFLAGS} -fcommon -I${PREFIX}/include" | ||
|
||
INSTALL_PREFIX="${PREFIX}" make -j${CPU_COUNT} | ||
|
||
# Include scripts | ||
cp -f stan_consensus.pickle $PREFIX/bin/stan_consensus.pickle | ||
cp -f *py $PREFIX/bin | ||
chmod +rx $PREFIX/bin/souporcell_pipeline.py | ||
|
||
# Scripts expect the binary located in the following folder | ||
mkdir -p $PREFIX/bin/souporcell/target/release | ||
mkdir -p $PREFIX/bin/troublet/target/release | ||
|
||
# Build statically linked binary with Rust | ||
RUST_BACKTRACE=1 | ||
cargo install --verbose --root "${PREFIX}/bin/souporcell/target/release/" --path troublet | ||
cargo install --verbose --root "${PREFIX}/bin/troublet/target/release/" --path souporcell |
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,64 @@ | ||
{% set name = "souporcell" %} | ||
{% set version = "2.5" %} | ||
{% set sha256 = "1404b87e44c4452b2f329abb81ce4a8383ed5b7e94f38ff2815c5bed62ec2c7f" %} | ||
|
||
package: | ||
name: {{ name|lower }} | ||
version: {{ version }} | ||
|
||
source: | ||
url: https://github.com/wheaton5/souporcell/archive/refs/tags/v{{ version }}.tar.gz | ||
sha256: {{ sha256 }} | ||
|
||
build: | ||
number: 0 | ||
run_exports: | ||
- {{ pin_subpackage('souporcell', max_pin="x") }} | ||
|
||
requirements: | ||
build: | ||
- {{ compiler('rust') }} | ||
- {{ compiler('cxx') }} | ||
- cmake | ||
- make | ||
- autoconf | ||
- pkg-config | ||
host: | ||
- python =3.9 | ||
- pip | ||
run: | ||
- python =3.9 | ||
- pysam | ||
- pystan <3 | ||
- pyvcf | ||
- numpy | ||
- pyfaidx | ||
- setuptools <58 | ||
- scipy | ||
- bcftools >=1.9 | ||
- bedtools >=2.28 | ||
- freebayes >=1.3 | ||
- htslib >=1.9 | ||
- hisat2 | ||
- minimap2 >=2.26 | ||
- samtools >=1.9 | ||
- vatrix | ||
|
||
test: | ||
commands: | ||
- souporcell_pipeline.py -h | ||
|
||
about: | ||
home: "https://github.com/wheaton5/souporcell" | ||
license: MIT | ||
license_family: MIT | ||
license_file: LICENSE | ||
summary: "Clustering scRNAseq by genotypes." | ||
dev_url: "https://github.com/wheaton5/souporcell" | ||
|
||
extra: | ||
identifiers: | ||
- doi:10.1101/699637v1 | ||
- biotools:souporcell | ||
skip-lints: | ||
- uses_setuptools # uses pkg_resoures during run time |