SigmaP: Python package for predicting sigma70 promoter in Escherichia coli K-12
Project description
SigmaP
Python package for Sigma70 promoter Prediction. This package used Sigma70Pred (Patiyal et al. 2022).
Installation
This package can be installed by pip.
pip install sigmap
How to use
First, prepare fasta file containing DNA sequence. Minimum length for prediction is 81nt. Then, calculate probability score by SigmaFactor. Run prediction model by .predict method. Results will be returned as pd.DataFrame.
from sigmap import SigmaFactor
sigma = SigmaFactor()
df_out = sigma.predict('tutorial/example_seq.fa')
| ID | Sequence | Score | Prediction |
|---|---|---|---|
| >Seq_1 | TAGCACGACGATAATATAAACGCAGCAAAAAAAAAAAAAAAAAAAA... | 0.145 | Non-Promoter |
| >Seq_2 | AGCTTGCGTCAATGGGCAAGGTGGGCTTGCATTTGCTTAATAGAAA... | 0.478 | Promoter |
| >Seq_3 | TCGTTTTATTTCTTTTTTCTCCATTGAACTTTCAGTTTCTTTTCTA... | 0.692 | Promoter |
| >Seq_4 | CGCAGCGGGTTTACCCTCTGACCGTTTCTGTTACGAAGGCTTTTTA... | 0.216 | Non-Promoter |
| >Seq_5 | TGCTGCTTGGTCTGTGGGTTGCCGCACAGGTTGCCGGTTCCACCAA... | 0.162 | Non-Promoter |
| >Seq_6 | GAATCCAACTAATGTTGTAAACTGGCAAGGTAATGTCATTAGTCAT... | 0.418 | Promoter |
The input type for sigmap can also be a pd.DataFrame. If you want to convert a FASTA file into a DataFrame, you can use the fasta2df function.
from sigmap import fasta2df
df_seq = fasta2df('tutorial/example_seq.fa')
| Sequence_ID | Sequence |
|---|---|
| >Seq_1 | TAGCACGACGATAATATAAACGCAGCAA |
| >Seq_2 | AGCTTGCGTCAATGGGCAAGGTGGGCTTGCATTTGCTTAATAGAAA... |
| >Seq_3 | TCGTTTTATTTCTTTTTTCTCCATTGAACTTTCAGTTTCTTTTCTA... |
| >Seq_4 | CGCAGCGGGTTTACCCTCTGACCGTTTCTGTTACGAAGGCTTTTTA... |
| >Seq_5 | TGCTGCTTGGTCTGTGGGTTGCCGCACAGGTTGCCGGTTCCACCAA... |
| >Seq_6 | GAATCCAACTAATGTTGTAAACTGGCAAGGTAATGTCATTAGTCAT... |
If the DataFrame contains data with ID and sequence columns, you can directly use it as input for SigmaFactor.
sigma = SigmaFactor()
# input type: pd.DataFrame
df_out = sigma.predict(df_seq)
| ID | Sequence | Score | Prediction |
|---|---|---|---|
| >Seq_1 | TAGCACGACGATAATATAAACGCAGCAAAAAAAAAAAAAAAAAAAA... | 0.145 | Non-Promoter |
| >Seq_2 | AGCTTGCGTCAATGGGCAAGGTGGGCTTGCATTTGCTTAATAGAAA... | 0.478 | Promoter |
| >Seq_3 | TCGTTTTATTTCTTTTTTCTCCATTGAACTTTCAGTTTCTTTTCTA... | 0.692 | Promoter |
| >Seq_4 | CGCAGCGGGTTTACCCTCTGACCGTTTCTGTTACGAAGGCTTTTTA... | 0.216 | Non-Promoter |
| >Seq_5 | TGCTGCTTGGTCTGTGGGTTGCCGCACAGGTTGCCGGTTCCACCAA... | 0.162 | Non-Promoter |
| >Seq_6 | GAATCCAACTAATGTTGTAAACTGGCAAGGTAATGTCATTAGTCAT... | 0.418 | Promoter |
Contact: Goosang Yu (gsyu93@gmail.com)
Project details
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sigmap-1.1.2.tar.gz.
File metadata
- Download URL: sigmap-1.1.2.tar.gz
- Upload date:
- Size: 247.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9b591f46237f5427966936cf8e7ab176628678508f9b81c98cc8cf80bea32a0
|
|
| MD5 |
260fbbe45d9d0df0fe05b1650f00605b
|
|
| BLAKE2b-256 |
e31b1d9c41115513604f5f431e9da1a3af699d899695509d0180a167de35ce4b
|
File details
Details for the file sigmap-1.1.2-py3-none-any.whl.
File metadata
- Download URL: sigmap-1.1.2-py3-none-any.whl
- Upload date:
- Size: 256.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-httpx/0.28.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
282473d87517055fb6997567060eb00347f66139ce0106e41fbfee188bdda9e5
|
|
| MD5 |
6dac5f60281cc952e8bb869a646afe86
|
|
| BLAKE2b-256 |
50c2c21788cedd421aba5173a732714ebf5e7816fafa976ccc413b6e8407cc61
|