Treesort

Latest version: v0.3.0

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

Scan your dependencies

0.3.0

- **New reassortment inference method: mincut**. The new method is more robust than the current 'local' method in many instances and _does not_ result in "uncertain" reassortment inferences with the '?' annotation. The method uses the reassortment test to cut the reference phylogeny into the optimum (smallest) number of non-reassorting parts with theoretical guarantees on optimality. To use the new method, specify `-m mincut`.
- **Handling of datasets with non-uniform strain headers across trees and alignments**. Previously, TreeSort required perfect matches between strain labels across the alignments and trees. Now, the alignments can have different sizes - TreeSort will automatically find the common set of strains. Further, if you have differing strain labels for different segments - you can use `--match-on-strain` or `--match-on-epi` commands to let TreeSort automatically match different segments either based on the strain name (e.g., "A/swine/Iowa/2384/2015") or the EPI_ISL ID for GISAID data, and keep the other parts of the deflines non-uniform.
- **Automatically parse and prepare your dataset for TreeSort analysis**. The `prepare_dataset.sh` script can take standard flu fasta files with a mix of different segments and downloaded from e.g., GISAID, GenBank, or other sources, and automatically split it, build trees for different segments, and make a descriptor file for TreeSort. The script requires standard "|" (pipe) delimeters between different fields in fasta headers, and having the segment identifiers as one of the fields in the middle. E.g., "EPI_ISL_xxx|A/Texas/33/2017|NA|2017-02-18". Note that the dates are also required to run this script and TreeSort in general.
**Note:** The script only builds "rough" FastTree trees for each of the segments. To get best results from TreeSort, its best to have the reference tree inferred by another maximum likelihood method, e.g., RAxML or IQ-Tree. The rooting of the tree can be performed by the `treetime-root.py` script provided in this repo.

Links

Releases

Has known vulnerabilities

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.