PyTFBS: A Python Package for Transcription Factor Binding Site Prediction
Project description
PyTFBS
A Python package for dpredicting transcription factor binding sites.
Installation
pip install torch numpy PyTFBS
Usage
from PyTFBS import motif, predict
# download PyTFBS data, only need to run once!!!
motif.download_data()
# list available models
motif.list_models(species='Homo sapiens', accuracy=0.9, sensitivity=0.8, specificity=0.9, precision=0.8, f1=0.8)
# get avaiable motifs
motifs = motif.get_motifs(species='Homo sapiens', accuracy=0.9, sensitivity=0.8, specificity=0.9, precision=0.8, f1=0.8)
print(motifs)
# get models based on motif name
models = motif.get_models('RFX2_HUMAN.H11MO.0.A')
print(models)
# predict one model
predict.script('CEBPB_HUMAN.H11MO.0.A', 'CEBPB_HUMAN.H11MO.0.A', 'input_seq_file.fasta', 'out_file.txt')
# speed up using mutil-threading (for Windows OS only)
predict.win_bin('CEBPB_HUMAN.H11MO.0.A', 'CEBPB_HUMAN.H11MO.0.A', 'input_seq_file.fasta', 64, 'out_file.txt')
# run prediction with user motif data
# the my_motif_dir should be organized as [[motif], [trace], [par]]
predict.script('CEBPB_HUMAN.H11MO.0.A', 'CEBPB_HUMAN.H11MO.0.A', 'input_seq_file.fasta', data_dir='my_motif_dir')
predict.win_bin('CEBPB_HUMAN.H11MO.0.A', 'CEBPB_HUMAN.H11MO.0.A', 'input_seq_file.fasta', 64, data_dir='my_motif_dir')
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
pytfbs-1.0.5.tar.gz
(7.5 kB
view details)
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 pytfbs-1.0.5.tar.gz.
File metadata
- Download URL: pytfbs-1.0.5.tar.gz
- Upload date:
- Size: 7.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
55a788a4ee8d08b3517fc2f623a07b133cfbc9eef5dccf5af78400f9f39b4e9a
|
|
| MD5 |
17324df6518550e5159bbbf88e56eb75
|
|
| BLAKE2b-256 |
0350cf2c66dc3a52ef317890746f3cc8383334e9db85ef0ffa8c864b084aefe8
|
File details
Details for the file pytfbs-1.0.5-py3-none-any.whl.
File metadata
- Download URL: pytfbs-1.0.5-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
91b32cb6a4c653e46cc0296cae7fe970cfdb9a0a11e0d0a9082241898681170e
|
|
| MD5 |
44f131c74135ecc5f06ce996a3efe177
|
|
| BLAKE2b-256 |
3724f4be9f618c993dd75b2f4b008abfaa1da22f9c8ca277c9c8db97bfd72322
|