Pango-collapse

Latest version: v0.8.2

Safety actively analyzes 682387 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 6

0.8.2

🐳 First Docker Release

**Full Changelog**: https://github.com/MDU-PHL/pango-collapse/compare/v0.8.1...v0.8.2

0.8.1

This version now includes support for unix pipes

bash
Collapse and extract BA.5 samples
cat tests/data/input.csv | pango-collapse -p BA.5 | grep ":BA.5"


What's Changed
* ✨Output to stdout by Wytamma in https://github.com/MDU-PHL/pango-collapse/pull/15
* ✨Input can be read from stdin
* ✨ Parents from cli by Wytamma in https://github.com/MDU-PHL/pango-collapse/pull/17
* ⬇️ --url option is deprecated by Wytamma in https://github.com/MDU-PHL/pango-collapse/pull/16


**Full Changelog**: https://github.com/MDU-PHL/pango-collapse/compare/v0.7.3...v0.8.1

0.7.3

What's Changed
* Catch offline error by Wytamma in https://github.com/MDU-PHL/pango-collapse/pull/13

New Contributors
* Wytamma made their first contribution in https://github.com/MDU-PHL/pango-collapse/pull/13

**Full Changelog**: https://github.com/MDU-PHL/pango-collapse/compare/v0.7.2...v0.7.3

0.7.2

Release for Zendo DOI (no changes)

**Full Changelog**: https://github.com/MDU-PHL/pango-collapse/compare/v0.7.1...v0.7.2

0.7.1

The `--latest` flag is no longer required if a `--url` is provided.

**Full Changelog**: https://github.com/MDU-PHL/pango-collapse/compare/v0.7.0...v0.7.1

0.7.0

✨ Added expanded format

The `Lineage_expanded` column provides a human readable and searchable version of pango linages. The delimiter (`:`) separates each alias level in the full lineage. You can determine the linage parental lineages of a lineage in expanded format by reading from right to left. For example in the lineage `B.1.1.529:BA.5.3.1:BE.1` we can see that `BE.1` comes from `BA.5.3.1` which inturn comes from `B.1.1.529`.

Expanded lineages can be converted to full lineages by removing the delimiter and sub lineage letters. Collapsed lineages can be obtained by taking the final component of the expanded lineage.

bash
$ echo "B.1.1.529:BA.5.3.1:BE.1" | sed -E 's/:[A-Za-z]+//g'
B.1.1.529.5.3.1.1 full lineage
$ echo "B.1.1.529:BA.5.3.1:BE.1" | awk -F: '{print $NF}'
BE.1 compressed lineage


Lineages to the right of the delimiter are equivalent (although the parental lineages are implicit).

python
B.1.1.529:BA.5.3.1:BE.1 == BA.5.3.1:BE.1 == BE.1


Lineages in expanded format are easily searched with regex. Exact matches can be found by matching with the end of the expanded lineage using the `$` anchor e.g `:BE.1$` to exactly mach the BE.1 lineage. Sub lineages can be found by simply checking if the expanded lineage contains the parental lineage of interest.

bash
$ grep ":BA.5" output.csv
BA.5.2.1,B.1.1.529.5.2.1,BA.5,B.1.1.529:BA.5.2.1
BE.1,B.1.1.529.5.3.1.1,BE.1,B.1.1.529:BA.5.3.1:BE.1


**Full Changelog**: https://github.com/MDU-PHL/pango-collapse/compare/v0.6.3...v0.7.0

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.