phylofunc
'phylofunc' is a Python package for generating phylofunc to incorporate microbiome phylogeny to inform on metaproteomic functional distance. It enables efficient calculation of functional beta-diversity distances between sample pairs and generates comprehensive distance metrics across multiple samples.
Installation of package
You can install this package via pip:
pip install phylofunc
Usage
Once installed, you can use the phylofunc package in a Python script or an interactive environment.
Quick Start
Import package
from phylofunc import PhyloFunc_distance
from phylofunc import PhyloFunc_matrix
Script
Two input parameters are required. The first is a phylogenetic tree (default: bac120_iqtree_v2.0.1.nwk). The second is a phylogeny-informed Taxon-Function table, which includes columns labeled Taxon, Function, and the names of samples (default: Taxon_Function_distance.csvor Taxon_Function_matrix.csv).
1. Calculate phylofunc distance between sample pairs
PhyloFunc_distance(tree_file='bac120_iqtree_v2.0.1.nwk', sample_file='Taxon_Function_distance.csv')
2. Calculate phylofunc distance matrix across multiple samples
PhyloFunc_matrix(tree_file='bac120_iqtree_v2.0.1.nwk', sample_file='Taxon_Function_matrix.csv')
Output
phylofunc distance or phylofunc distance matrix can be output.
Performance optimization
This package improves performance by reducing disk I/O operations and processing data in memory. This enables faster computations with large datasets.
Project structure
phylofunc/
├── __init__.py
├── phylofunc.py
│ └── The main function code.
├── data/
│ ├── Taxon_Function_distance.csv
│ │ └── Data file for calculating the distance between two samples.
│ ├── Taxon_Function_matrix.csv
│ │ └── Data file for calculating distances matrix across multiple samples.
│ └── bac120_iqtree_v2.0.1.nwk
│ └── Phylogenetic tree file.
└── Phylofunc_Package_Tutorial.ipynb
└── Demonstrates the specific application of this package.
Contribution
Welcome code contributions and improvement suggestions! Feel free to submit an issue or a pull request on GitHub.
License
This project uses an MIT license. For details, see the LICENSE file.
Application
For more detailed usage instructions, please refer to the paper: Wang and Li et al., PhyloFunc: Phylogeny-informed Functional Distance as a New Ecological Metric for Metaproteomic Data Analysis doi: https://doi.org/10.1101/2024.05.28.596184
Metadata
Release files for phylofunc 2.0
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 |
|---|---|---|---|---|
| phylofunc-2.0.tar.gz | 1.3 MB | Without provenance | Details for phylofunc-2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phylofunc-2.0-py3-none-any.whl | Python 3 | none | any | Details for phylofunc-2.0-py3-none-any.whl |
Total release size: 2.6 MB
Release files / phylofunc-2.0.tar.gz
| Download URL | phylofunc-2.0.tar.gz |
|---|---|
| Size | 1.3 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
873a8ccb140961a8b2745536ec02344f8f29ade1b3ec4172bc8535ed15c1a98a
|
|
BLAKE2b-256 checksum How to use checksums |
3942f3c4a31566c27da6b1605523b5968b6a7bf18c10d0d72fa1fcef56a0c7a9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Release files / phylofunc-2.0-py3-none-any.whl
| Download URL | phylofunc-2.0-py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea3be309c0339ba3d8aa28b40240eae078216b8bc7a58a3b1289017356e025f1
|
|
BLAKE2b-256 checksum How to use checksums |
c562d8d863183ea6be0e2d35ad71b6791e2e7e6fd6d6850f73aac3513fc384de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.11.2
|
Security for phylofunc 2.0
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.