Skip to content

Commit

Permalink
Add recipe for consensify (#50969)
Browse files Browse the repository at this point in the history
* Add consensify recipe

* Complete about section

* small edits

* Edits following coderabbitai

* Add more advanced test

* Implement edits by @martin-g and remove complex test

mulled-test ignores resources set in the meta.yaml, so the more advanced tests that work on conda fail on mulled.
  • Loading branch information
dramanica authored Sep 27, 2024
1 parent 080f249 commit 8ea059f
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
11 changes: 11 additions & 0 deletions recipes/consensify/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

## compile
${CXX} -c consensify_c.cpp -I./ ${CXXFLAGS}

## link
${CXX} consensify_c.o -o consensify_c -lz ${LDFLAGS}

## install
mkdir -p $PREFIX/bin
cp consensify_c ${PREFIX}/bin/consensify_c
36 changes: 36 additions & 0 deletions recipes/consensify/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{% set version = "2.4.0" %}

package:
name: consensify
version: {{ version }}

source:
url: https://github.com/jlapaijmans/Consensify/archive/refs/tags/{{ version }}.tar.gz
sha256: 2b88cda2c6ad44b6fd749d86485d3f16418b189b9c8ff4d20dd19640792dac1e

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

requirements:
build:
- {{ compiler('cxx') }}
host:
- zlib
run:
- zlib

test:
commands:
- consensify_c -h

about:
home: https://github.com/jlapaijmans/Consensify
license: GPL-3.0-or-later
license_family: GPL
license_file: LICENCE.txt
dev_url: https://github.com/jlapaijmans/Consensify
doc_url: https://github.com/jlapaijmans/Consensify
summary: A method for generating a consensus pseudohaploid genome sequence
about: Consensify is a method for generating a consensus pseudohaploid genome sequence with greatly reduced error rates compared to standard pseudohaploidisation. The method is described in full and tested in the associated publication (Barlow et al. (2020), Genes 11:50, doi 10.3390/genes11010050).

0 comments on commit 8ea059f

Please sign in to comment.