A Probabilistic Model for Recovering GRNs based on Multi-Omics Data
Project description
PRISM
A Probabilistic Bayesian Model to Recover Gene Regulatory Networks by Incorporating a Biologically Interpretable Structure based on single-cell Multi-Omics Data
Prerequisites
- Python 3.8.10
Installation
git clone https://github.com/Ying-Lab/PRISM
cd PRISM
pip install -r requirements.txt
python setup.py install
or
pip install prism-grn
Parameters
flag: different tasks, True is causality prediction; False is undirected GRN reconstruction. Default is True.
cuda: Whether using GPU. Default is True.
Paring: Whether the scRNA-seq and scATAC-seq data are paired. Default is True.
epoch: Training epoches. Default is 2000.
lr: Initial learning rate. Default is 0.0003
Example
for GRN Reconstruction
from prism import model
from prism import utils
from utils import load_sc_data
args['flag'] = False
adj_train, feature, feature_ATAC, train_ids, val_ids, test_ids, train_labels, val_labels, test_labels = load_sc_data(Expression_data_path, Genescore_data_path, label_path)
adj_train = F.normalize(adj_train, p=1, dim=1)
scc = model.PRISM( nfeat=feature.shape[1], ## the size of feature -> cell num
nhid=args['hidden'], ## hidden layer size
dropout=args['dropout'],
ns=args['ns'], ## the size of VAE node embedding
alpha=args['alpha'],
flag=args['flag'], ## causal or not
use_cuda= args['cuda']).to(device)
for Causality prediction
from prism import model
from prism import utils
from utils import load_sc_causal_data
args['flag'] = True
adj_train, feature, feature_ATAC, train_ids, val_ids, test_ids, train_labels, val_labels, test_labels = load_sc_causal_data(Expression_data_path, Genescore_data_path, label_path)
adj_train = F.normalize(adj_train, p=1, dim=1)
scc = model.PRISM( nfeat=feature.shape[1], ## the size of feature -> cell num
nhid=args['hidden'], ## hidden layer size
dropout=args['dropout'],
ns=args['ns'], ## the size of VAE node embedding
alpha=args['alpha'],
flag=args['flag'], ## causal or not
use_cuda= args['cuda']).to(device)
The more detailed usage is exemplified in demo.
Citation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 prism_grn-1.2.0.tar.gz.
File metadata
- Download URL: prism_grn-1.2.0.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e4c2ce43342c6af2cb278002f9881a43146bb3d2eef6cc02ccb04357ce18f0c
|
|
| MD5 |
1b1fbfbc5911e429d23dffaa0d051c74
|
|
| BLAKE2b-256 |
0b537a6391fc1998ae9f8863476e7112fbde1f5fd07db949eb76d5a55b07da01
|
File details
Details for the file prism_grn-1.2.0-py3-none-any.whl.
File metadata
- Download URL: prism_grn-1.2.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.8.19
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0673f94e48a3c5257c7e2e75888fa1ce9e9a43113243d09539be728a5c17b32f
|
|
| MD5 |
00d2b7dd3992770b634de98cf1aa3e03
|
|
| BLAKE2b-256 |
b228c704bc779b024ee3a822501b61dc93e7b55b78487d0857cd6afd75b03484
|