No project description provided
Project description
Pango-collapse
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pango_collapse-0.3.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f37ef569bb61ee940d09a17c8f824ea7c97fcdc5eaccee787fff62b090c47b4c |
|
MD5 | e4bc336779f0e59d470e90d03547adbd |
|
BLAKE2b-256 | 5fa060e9dca9cf4fcb3920865b4719aabb2b2db7bb8ee3ac7c24dbbcdc333667 |