TreeOrdination
Implementation of a wrapper which creates unsupervised projections using LANDMark and UMAP.
Install
From PyPI:
pip install TreeOrdination
From source:
git clone https://github.com/jrudar/TreeOrdination.git
cd TreeOrdination
pip install .
# or create a virtual environment
python -m venv venv
source venv/bin/activate
pip install .
Example Usage
from TreeOrdination import TreeOrdination
from sklearn.datasets import make_classification
#Create the dataset
X, y = make_classification(n_samples = 200, n_informative = 20)
#Give features a name
f_names = ["Feature %s" %str(i) for i in range(X.shape[0])]
tree_ord = TreeOrdination(feature_names = f_names).fit(X, y)
#This is the LANDMark embedding of the dataset. This dataset is used to train the supervised model ('supervised_clf' parameter)
landmark_embedding = tree_ord.LM_emb
#This is the UMAP projection of the LANDMark embedding
umap_projection = tree_ord.UMAP_emb
#This is the PCA projetion of the UMAP embedding
pca_projection = tree_ord.PCA_emb
Notebooks and Other Examples
Comming Soon.
When available, examples of how to use TreeOrdination will be found here.
Interface
An overview of the API can be found here.
Contributing
To contribute to the development of TreeOrdination please read our contributing guide
References
Rudar, J., Porter, T.M., Wright, M., Golding G.B., Hajibabaei, M. LANDMark: an ensemble approach to the supervised selection of biomarkers in high-throughput sequencing data. BMC Bioinformatics 23, 110 (2022). https://doi.org/10.1186/s12859-022-04631-z
Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research. 2011;12:2825–30.
Geurts P, Ernst D, Wehenkel L. Extremely Randomized Trees. Machine Learning. 2006;63(1):3–42.
Rudar, J., Golding, G.B., Kremer, S.C., Hajibabaei, M. (2023). Decision Tree Ensembles Utilizing Multivariate Splits Are Effective at Investigating Beta Diversity in Medically Relevant 16S Amplicon Sequencing Data. Microbiology Spectrum e02065-22.
Jai Ram Rideout, Greg Caporaso, Evan Bolyen, Daniel McDonald, Yoshiki Vázquez Baeza, Jorge Cañardo Alastuey, Anders Pitman, Jamie Morton, Qiyun Zhu, Jose Navas, Kestrel Gorlick, Justine Debelius, Zech Xu, Matt Aton, llcooljohn, Joshua Shorenstein, Laurent Luce, Will Van Treuren, John Chase, … Dr. K. D. Murray. (2025). scikit-bio/scikit-bio: scikit-bio 0.6.3 (0.6.3). Zenodo. https://doi.org/10.5281/zenodo.14640761
Metadata
Release files for TreeOrdination 1.3.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| treeordination-1.3.5.tar.gz | 16.2 kB | Without provenance | Details for treeordination-1.3.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| treeordination-1.3.5-py3-none-any.whl | Python 3 | none | any | Details for treeordination-1.3.5-py3-none-any.whl |
Total release size: 27.6 kB
Release files / treeordination-1.3.5.tar.gz
| Download URL | treeordination-1.3.5.tar.gz |
|---|---|
| Size | 16.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c47e932eda567a721714bca3dd55d2dfffdc1d207400dee1e219c3243c65e497
|
|
BLAKE2b-256 checksum How to use checksums |
e4eef9378d4d509903bb1b860b8260d63283a267b35379f2e01d397219d6d63f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Release files / treeordination-1.3.5-py3-none-any.whl
| Download URL | treeordination-1.3.5-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f4831d77675f0c489b6505febae5b7ebe0c8bdc81dbe0bc4e608f0e9900c00bb
|
|
BLAKE2b-256 checksum How to use checksums |
46de3d68ec43027cdd11ec1da1cca843f878e2ae75ab15237b90906ba26db126
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.9.21
|
Security for TreeOrdination 1.3.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.