PyOVERCAST
A Python package for mining key transcription factors from transcriptome data.
Installation
pip install numpy pandas statsmodels scipy 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_rci4_1w_0.8')
print(tfs_codes)
# get targets
targets = clinks.get_targets(set_name='human_hocomoco_CLink_rci4_1w_0.8', tf='NFKB1_HUMAN.H11MO.1.B')
print(targets)
# predict one DEG-list
result = predict.olcr(set_names=['human_jaspar_CLink_rci4_1w_0.8', 'human_hocomoco_CLink_rci4_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_jaspar_CLink_rci4_1w_0.8', 'human_hocomoco_CLink_rci4_1w_0.8'], list_file='./OVERCAST_data/input_deg-list.txt', win=30, bs_n=1000, thread_n=32)
# or predict one DEG-list with bootstrap and permutation
result = predict.olcr_bootstrap_permutation(set_names=['human_jaspar_CLink_rci4_1w_0.8', 'human_hocomoco_CLink_rci4_1w_0.8'], list_file='./OVERCAST_data/input_deg-list.txt', win=30, bs_n=1000, thread_n=32)
# save result to text file
result.to_csv('output.txt', sep='\t', index=False, encoding='utf-8')
# plot OLC matrix
predict.plot_olc(set_names=['human_jaspar_CLink_rci4_1w_0.8', 'human_hocomoco_CLink_rci4_1w_0.8'], list_file='./PyOVERCAST_data/input_deg-list.txt', tf='MA0844.2_XBP1', win=30)
# plot OLC matrix
predict.plot_olc(set_names=['human_jaspar_CLink_rci4_1w_0.8', 'human_hocomoco_CLink_rci4_1w_0.8'], list_file='./PyOVERCAST_data/input_deg-list.txt', tf='MA0844.2_XBP1', win=30)
# plot fitted 3D U-surface
predict.plot_contour(set_names=['human_jaspar_CLink_rci4_1w_0.8', 'human_hocomoco_CLink_rci4_1w_0.8'], list_file='./PyOVERCAST_data/input_deg-list.txt', tf='MA0844.2_XBP1', win=30)
Metadata
Release files for PyOVERCAST 1.0.10
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.10.tar.gz | 13.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyovercast-1.0.10-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 26.7 kB
Release files / pyovercast-1.0.10.tar.gz
| Download URL | pyovercast-1.0.10.tar.gz |
|---|---|
| Size | 13.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
924d5cd5c5ba22105391bf9cbc1f0aedc2e55250767a324d54316f8f351cf4ec
|
|
BLAKE2b-256 checksum How to use checksums |
0f432afdc3252e7c9ac27726f85c01d957b30045d47a05791e03061a81733ad5
|
| 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.10-py3-none-any.whl
| Download URL | pyovercast-1.0.10-py3-none-any.whl |
|---|---|
| Size | 13.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bcf02b6cd68abe7858e0a36c07ec4840a4cab21e598dc71940617b8baa3f3647
|
|
BLAKE2b-256 checksum How to use checksums |
c4ca849ed425e5fa614dc77d531f60b135f8b4f519c54835aa3402cd6527fdb7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|