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.9)
# get avaiable motifs
motifs = motif.get_motifs(species='Homo sapiens', accuracy=0.9, sensitivity=0.9)
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.2.tar.gz
(7.4 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.2.tar.gz.
File metadata
- Download URL: pytfbs-1.0.2.tar.gz
- Upload date:
- Size: 7.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8ed830c61a9c38482c03a8e2d6f4b3b72a7f47b17ffb16bcf7f579ae812d323
|
|
| MD5 |
cf170c793225acccdd7dd07be6a38cfa
|
|
| BLAKE2b-256 |
0b1292ee5c46e67b42a0e778a31204e9f53418fca5d4cc6558e26a2ac7eafe82
|
File details
Details for the file pytfbs-1.0.2-py3-none-any.whl.
File metadata
- Download URL: pytfbs-1.0.2-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.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ed311a3837d03bd05d6e89d1ba0c58a7a945769f3ed6676e759afe688262456
|
|
| MD5 |
72f773e6460f3926402401316bc0fe23
|
|
| BLAKE2b-256 |
89a68bd19caedcd3e068cca2c2709e58fd189da8c5db715e700b3c4782a7234e
|