pytrapment: create an entrapment database for proteomic mass spectrometry analysis
Project description
A python package for creating entrapment databases.
overview
pytrapment allows the convenient creation of entrapment databases for proteomic mass spectrometry analysis. Entrapment databases are build by sampling for each protein in the host fasta file an fitting entrapment protein.
pytrapment performs the following steps to minimize the differences between the host and entrapment database.
- remove all entrapment proteins that share a peptide with the host (replace I with L amino acids)
- compute the amino acid composition for each protein in the host and entrapment database
- for each host protein find the nearest neighbor (Euclidean distance) in the composition space
- perform some quality control metrics on the peptides
- save the entrapment fasta file (host + entrapment proteins)
Installation
pytrapment is available on pypi and can be installed via pip install pytrapment
Usage
To use pytrapment, simply call the main program via a command line:
pytrapment -i host.fasta -t trap.fasta -o entrapment_db
Make sure to have the correct paths to the fasta files. The out dir will contain the entrapment fasta and two qc plots for peptide and protein features. The repository contains example files which can be used as follows:
pytrapment -i sample_data/host.fasta -t sample_data/trap.fasta -o sample_data/
The results (qc_plot.png and entrapment_data.fasta) can also be found in the sample_data folder.
Contributors
- Sven Giese
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
File details
Details for the file pytrapment-1.0.1.tar.gz
.
File metadata
- Download URL: pytrapment-1.0.1.tar.gz
- Upload date:
- Size: 24.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6b4c74835d1113c070474ff319a4f0fec9656d197d421abf13724fc4bdc469fd |
|
MD5 | 34782121bcb6cc6b1b632a9915f854b7 |
|
BLAKE2b-256 | 3d7aa3e18bbe12751c13c865c0f213389556452d18f12d93d07fca86d55d3498 |