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.4.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.4.tar.gz.
File metadata
- Download URL: pytfbs-1.0.4.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 |
269b5e7266111118c8dfbc40a5355000b26fe975ee0aae514e0bc1841b917e50
|
|
| MD5 |
780dc7f10894c02f5a01637ce674be25
|
|
| BLAKE2b-256 |
36fabc7e91cefa36b33d3eb85048c78c9afa91d451f2bf2100d20dbeb0d0cf44
|
File details
Details for the file pytfbs-1.0.4-py3-none-any.whl.
File metadata
- Download URL: pytfbs-1.0.4-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 |
4fbefd83ea062b9058f4449647c004e111266343ab6490aa6bf30ad86d8a3b10
|
|
| MD5 |
120b5685bc0ff893097d587501a945ec
|
|
| BLAKE2b-256 |
28806a9140d02287c628b61c138fcfeacb3d7d21eafdbc9dc96e9b21472277c4
|