CLI interface for the PSAP classifier. PSAP implements a RandomForest approach to predict the probability of proteins to mediate protein phase separation (PPS).
Project description
psap
CLI interface for the PSAP classifier. PSAP implements a RandomForest approach to predict the probability of proteins to mediate protein phase separation (PPS). Initially, a set of protein sequences is annotated with biochemical features which are subsequently used to train a RandomForest (scikit-learn) classifier. The trained classifier is afterwards exported to json format and can be used to predict the llps class probability (PSAP_score) for unseen protein sequences.
The default model was trained on the human reference proteome with a list of literature curated PPS proteins for positive class labeling. Both can be found in /data.
Publication | Mierlo, G., Jansen, J. R. G., Wang, J., Poser, I., van Heeringen, S. J., & Vermeulen, M. (2021). Predicting protein condensate formation using machine learning. Cell Reports, 34(5), 108705. https://doi.org/10.1016/j.celrep.2021.108705.
Free software: MIT license
Getting Started
1. Install psap
pip
pip install psap
conda
conda install bioconda::psap
2. Train classifier
psap train -f /path/to/peptide-trainingset.fasta -l /path/to/known/pps-proteins.txt (optional) -o /path/to/output/directory (optional)
The trained RandomForest classifier will be exported to json format and stored in the output directory.
3. Predict llps score
psap predict -f /path/to/peptide-testset.fasta -m /path/to/model.json (optional) -o /path/to/output/directory (optional)
psap loads the default classifier stored in /data/model when no model is provided with -m. An example peptide fasta file can be found in the psap/data/testset folder.
4. Annotate peptide sequences (optional)
psap annotate -f /path/to/peptide.fasta -l /path/to/known/pps-proteins.txt (optional) -o /path/to/output/directory (optional)
Manually annotate a peptide fasta with biochemical features. This step is included in train and predict.
Credits
This package was adapted from the cookiecutter and the audreyr/cookiecutter-pypackage project template.
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
File details
Details for the file psap-1.0.7.tar.gz
.
File metadata
- Download URL: psap-1.0.7.tar.gz
- Upload date:
- Size: 9.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d87662b201d97a228613f8d14a6d91ec241ff69e80a1c1b1b3fcc931ae5d7e5 |
|
MD5 | 9a555cdf212a8ba7723c615cb2ef6d80 |
|
BLAKE2b-256 | a8e39653ce35f4fba994d8344f5e1e43c2d8ca4942fdc7afdae78116a0c6b2a5 |
File details
Details for the file psap-1.0.7-py3-none-any.whl
.
File metadata
- Download URL: psap-1.0.7-py3-none-any.whl
- Upload date:
- Size: 9.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 72fa45e68ab8843df74d69f3d6a3b53bc65ea3415a097cd133e8786e86fac8ea |
|
MD5 | 55afda8e2582d0bc2eee11cff825b02b |
|
BLAKE2b-256 | 22cd3e48cb66ec798681d4e1db2bd1410e8690b3495c407196a68d568cfeebea |