Skip to content

Commit

Permalink
Added the devider recipe (rename of dbghaplo recipe)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluenote-1577 committed Oct 13, 2024
1 parent 8b3a321 commit 4cb106f
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 0 deletions.
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
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

0 comments on commit 4cb106f

Please sign in to comment.