ranbo4s
A Python package for mining key transcription factors from transcriptome data.
Installation
pip install numpy pandas statsmodels scipy seaborn matplotlib ranbo4s
Usage
from ranbo4s 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.rbo(set_names=['human_jaspar_CLink_rci4_1w_0.8', 'human_hocomoco_CLink_rci4_1w_0.8'], list_file='./ranbo4s_data/input_deg-list.txt', thread_n=16, bs_n=500)
# 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='./ranbo4s_data/input_deg-list.txt', tf='MA0844.2_XBP1', win=30)
Release files for ranbo4s 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 | |
|---|---|---|---|
| ranbo4s-1.0.0.tar.gz | 19.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ranbo4s-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 38.3 kB
Release files / ranbo4s-1.0.0.tar.gz
| Download URL | ranbo4s-1.0.0.tar.gz |
|---|---|
| Size | 19.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cc40de0dc427b60602e863b1233760af589797d3d349d0369c6f8019b1768bbf
|
|
BLAKE2b-256 checksum How to use checksums |
ad6fdb667d4107f48bb68d03fce475befc20ad8bdfb4ed954af2984e6a64a5db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|
Release files / ranbo4s-1.0.0-py3-none-any.whl
| Download URL | ranbo4s-1.0.0-py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d291d4a95111eaefd8ec75f186f79e49672ac232a9ab9d8611f3c21165b7bbb7
|
|
BLAKE2b-256 checksum How to use checksums |
7572d276e356caf064f6bfe5bc07dc09684dda955c20e9e10b6a7b002c7c6ec5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.13
|