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 wich are subsequently used to train a RandomForest (scikit-learn) classifier. The trained classifier is exported to json format and can be used to predict the llps class probability (PSAP_score) for new samples.
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 install psap
2. Train classifier
psap train -f /path/to/peptide-trainingset.fasta -l /path/top/known/pps-proteins.txt (optional) -o /output/directory (optional)
The trained RandomForest classifier is exported to json format and stored in the output directory.
3. Predict llps score for peptide instances
psap predict -f /path/to/peptid-testset.fasta -m /path/to/model.json (optional) -o /output/directory (optional)
When no model (-m) is provided psap loads the default classifier stored in /data/model.
4. Annotate petides (optional)
psap annotate -f /path/to/peptide.fasta -l /path/top/known/pps-proteins.txt (optional) -o /output/directory (optional)
Annotates 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.4.tar.gz
.
File metadata
- Download URL: psap-1.0.4.tar.gz
- Upload date:
- Size: 9.5 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3873d9c3a75c75e3df0998812508bcddcbdc3110ceacd17f3098827543236cbd |
|
MD5 | 23dc3b0764e939c59d55c4a70e618174 |
|
BLAKE2b-256 | ccdf45d3977e1732985682078a1d607d0d670644a18491cac26f2192f626843c |
File details
Details for the file psap-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: psap-1.0.4-py3-none-any.whl
- Upload date:
- Size: 9.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d51fad9fae466779297e8e496d7dac90c90eb24378d36febeb527598e6f819b7 |
|
MD5 | f6fa464c19fb31215128f5775e2141f9 |
|
BLAKE2b-256 | 397cd70ca6450970fff7eadbf2fb56de311648df606e859eaed19957b3155042 |