PyOVERCAST
A Python package for mining key transcription factors from transcriptome data.
Installation
pip install numpy pandas statsmodels seaborn matplotlib PyOVERCAST
Usage
from PyOVERCAST import clinks, predict
if __name__ == '__main__':
# download TF-target set, only need to run once!!!
clinks.download_data()
# list available TF-target set
sets_names = clinks.get_sets(species='Homo sapiens')
print(sets_names)
# list avaiable TFs
tfs_codes = clinks.get_tfs(set_name='human_hocomoco_CLink_wtcoor_1w_0.8')
print(tfs_codes)
# get targets
targets = clinks.get_targets(set_name='human_hocomoco_CLink_wtcoor_1w_0.8', tf='NFKB1_HUMAN.H11MO.1.B')
print(targets)
# predict one DEG-list
result = predict.olcr(set_names=['human_hocomoco_CLink_wtcoor_1w_0.8', 'human_jaspar_CLink_wtcoor_1w_0.8'], list_file='./PyOVERCAST_data/input_deg-list.txt', win=30, thread_n=16)
# or predict one DEG-list with bootstrap
result = predict.olcr_bootstrap(set_names=['human_hocomoco_CLink_wtcoor_1w_0.8', 'human_jaspar_CLink_wtcoor_1w_0.8'], list_file='./PyOVERCAST_data/input_deg-list.txt', win=30, thread_n=16)
# save result to text file
result.to_csv('output.txt', sep='\t', index=False, encoding='utf-8-sig')
# plot OLC matrix
predict.plot_olc(set_names=['human_hocomoco_CLink_wtcoor_1w_0.8', 'human_jaspar_CLink_wtcoor_1w_0.8'], list_file='./PyOVERCAST_data/input_deg-list.txt', tf='MA0844.2_XBP1', win=30)
# plot fitted 3D U-surface
predict.plot_fit3D(set_names=['human_hocomoco_CLink_wtcoor_1w_0.8', 'human_jaspar_CLink_wtcoor_1w_0.8'], list_file='./PyOVERCAST_data/input_deg-list.txt', tf='MA0844.2_XBP1', win=30)
Release files for PyOVERCAST 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyovercast-1.0.0.tar.gz | 10.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyovercast-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.6 kB
Release files / pyovercast-1.0.0.tar.gz
| Download URL | pyovercast-1.0.0.tar.gz |
|---|---|
| Size | 10.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c98c354194eac7715df9b92e1a2a0d1a2156bff23072664f18cde42357fbde8e
|
|
BLAKE2b-256 checksum How to use checksums |
0f3629353fb2aaf3234a864a669f948e5fbfc6129d4de9cebb9a8bcf754b467a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / pyovercast-1.0.0-py3-none-any.whl
| Download URL | pyovercast-1.0.0-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
480b04f4c44f6f9b3100b68e668f219cdc97ff4471145c623d7ecbc6c761eb98
|
|
BLAKE2b-256 checksum How to use checksums |
40904c18e62f2d723398a679cb1046bf953f0186a4a0b6c2f6982ee645e019ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|