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_1231', '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_1231', '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_1231', 'input_seq_file.fasta', data_dir='my_motif_dir')
predict.win_bin('CEBPB_HUMAN.H11MO.0.A', 'CEBPB_HUMAN.H11MO.0.A_1231', '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.3.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.3.tar.gz.
File metadata
- Download URL: pytfbs-1.0.3.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 |
8cc2545a09c2c03c15f5dd6198cdcc492f1297aeb888943a46f61628ede451e0
|
|
| MD5 |
ffbf464b2c9f1321e913186838d4e67e
|
|
| BLAKE2b-256 |
7b1acc3b3fa888b4541141dcae228d522d6eecd6058dea7d27003cb9b391c070
|
File details
Details for the file pytfbs-1.0.3-py3-none-any.whl.
File metadata
- Download URL: pytfbs-1.0.3-py3-none-any.whl
- Upload date:
- Size: 8.0 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 |
edb48575732c66d7367820ed8f5a0087cfa8c3104b8c60264fbcbe56fa0fe346
|
|
| MD5 |
26ee25fe58e497ff3abf20aaadd90545
|
|
| BLAKE2b-256 |
63f3d11be8acaaba9e8ee4ec66691aaa4c9d1c00b913a23e1cbc7af8178acecf
|