Skip to main content

No project description provided

Project description

Pango-collapse

tests

CLI to collapse Pango linages for reporting

Install

Install from pypi with pip.

pip install pango-collapse

Usage

pango-collapse takes a CSV file of SARS-CoV-2 samples (input.csv) with a column (default Lineage) indicating the pango lineage of the samples (e.g. output from pangoLEARN, nextclade, USHER, etc).

# input.csv
Lineage
BA.5.2.1
BA.4.6
BE.1

pango-collapse will collapse lineages up to the first user defined parent lineage (specified in a text file with --collapse-file). If the sample lineage has no parent lineage in the user defined collapse file the lineage will be collapsed up to either A or B. By default pango-collapse uses the collapse file found here.

# collapse.txt
BA.5
BE.1

pango-collapse will produce an output file which is a copy of the input file plus Lineage_full (the uncompressed lineage) and Lineage_family (the lineage compressed up to) columns.

pango-collapse input.csv --collapse-file collapse.txt -o output.csv 
# output.csv 
Lineage,Lineage_full,Lineage_family
BA.5.2.1,B.1.1.529.5.2.1,BA.5
BA.4.6,B.1.1.529.4.6,B
BE.1,B.1.1.529.5.3.1.1,BE.1

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pango-collapse-0.3.0.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

pango_collapse-0.3.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page