Skip to main content

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

sigmap-1.1.1.tar.gz (247.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sigmap-1.1.1-py3-none-any.whl (256.2 kB view details)

Uploaded Python 3

File details

Details for the file sigmap-1.1.1.tar.gz.

File metadata

  • Download URL: sigmap-1.1.1.tar.gz
  • Upload date:
  • Size: 247.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.28.1

File hashes

Hashes for sigmap-1.1.1.tar.gz
Algorithm Hash digest
SHA256 48b140ba228420f2edf7b03b12074a02a5948f9eb669988b2ceec555ae2f501f
MD5 71e2391c2bd5594a936b3d9212733b31
BLAKE2b-256 932234cfe65fda47b389db7679d116e4bc5820a02c17ceba4c1fcf035f4250db

See more details on using hashes here.

File details

Details for the file sigmap-1.1.1-py3-none-any.whl.

File metadata

  • Download URL: sigmap-1.1.1-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

Hashes for sigmap-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c7ed23224a41fba830439eff7129cfb70ee65be4fd293ac0388c8b72feb5f504
MD5 d30db162a5bdfca64835659a4d4cd963
BLAKE2b-256 9676d2d9d799d2cef738f704c243446bdfe8a8ee0e990441ae7d20b6456014ed

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page