Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding the devider recipe #51365

Merged
merged 12 commits into from
Oct 14, 2024
10 changes: 10 additions & 0 deletions recipes/devider/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash -euo

# Add workaround for SSH-based Git connections from Rust/cargo. See https://github.com/rust-lang/cargo/issues/2078 for details.
# We set CARGO_HOME because we don't pass on HOME to conda-build, thus rendering the default "${HOME}/.cargo" defunct.
export CARGO_NET_GIT_FETCH_WITH_CLI=true CARGO_HOME="$(pwd)/.cargo"

# build statically linked binary with Rust
cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
RUST_BACKTRACE=1 cargo install --verbose --locked --no-track --root $PREFIX --path .
cp scripts/* $PREFIX/bin
martin-g marked this conversation as resolved.
Show resolved Hide resolved
47 changes: 47 additions & 0 deletions recipes/devider/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{% set version="0.0.1" %}

package:
name: devider
version: {{ version }}

source:
url: https://github.com/bluenote-1577/devider/archive/v{{ version }}.tar.gz
sha256: e2c5e4a2faa51dbfd0ad4cb867d0dc25ea4012e83ec8fea27c1624592fce7dce

build:
number: 0
run_exports:
- {{ pin_subpackage('devider', max_pin="x.x") }}

requirements:
build:
- {{ compiler("cxx") }}
- {{ compiler('rust') }}
- cargo-bundle-licenses
- make
- cmake >=3.12
run:
- python
- samtools
- minimap2
- lofreq >=2.1.5
- tabix
- pysam >=0.16

test:
commands:
- devider -h
- run_devider_pipeline -h
- haplotag_bam -h

about:
home: https://github.com/bluenote-1577/devider
license: MIT
license_file:
- LICENSE
- THIRDPARTY.yml
summary: Haplotyping small sequences from heterogeneous long-read sequencing samples with a SNP-encoded positional de Bruijn graphs.

extra:
recipe-maintainers:
- bluenote-1577