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

Update pangolin to 4.3.1 #42192

Merged
merged 11 commits into from
Nov 5, 2024
18 changes: 10 additions & 8 deletions recipes/pangolin/meta.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,34 @@
{% set version = "4.3" %}
{% set version = "4.3.1" %}

package:
name: pangolin
version: {{ version }}

source:
url: https://github.com/cov-lineages/pangolin/archive/refs/tags/v{{ version }}.tar.gz
sha256: daf13c111799943b05bc2c8eee8deb2316e1347ca8f40f0b40d22cdbcc72e3c1
sha256: 79f958cfc1b3a01144b138b9ca34ab010aa4ec72499a29ea41acaa57b0bfe7c0

build:
number: 2
number: 0
noarch: python
script: python -m pip install --no-deps --ignore-installed .
script: {{ PYTHON }} -m pip install --no-deps --ignore-installed .
run_exports:
- {{ pin_subpackage('pangolin', max_pin="x") }}

requirements:
host:
- python >=3.7
- pip
- setuptools
run:
- python >=3.7
- biopython ==1.74
- biopython >=1.74
- pandas >=1.0.1
- tabulate
- joblib >=0.11
- scikit-learn <1.3.0
- scikit-learn >=0.23.1,<1.3.0
- pulp >=2
- minimap2 >=2.16
- snakemake-minimal >=5.13,<=7.30.1
- snakemake-minimal >=5.13,!=7.30.1,<8
- gofasta
- usher >=0.6.2
- ucsc-fatovcf >=426
Expand Down
4 changes: 3 additions & 1 deletion recipes/pangolin/run_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@

from pathlib import Path
from subprocess import run, PIPE, STDOUT
import sys

import pangolin

test_data = Path(pangolin.__file__).parent / 'data/reference.fasta'
cmd = ['pangolin', str(test_data)]
pangolin_proc = run(cmd, stdout=PIPE, stderr=STDOUT)
assert b'Output file written to' in pangolin_proc.stdout, pangolin_proc.stdout
print(pangolin_proc.stdout.decode(), file=sys.stderr)
assert b'Output file written to' in pangolin_proc.stdout
Loading