Dynamical Model Extension of the Supirfactor Model
Project description
supirfactor-dynamical
This is a PyTorch model package for creating dynamical, biophysical models of transcriptional output and regulation.
Installation
Install this package using the standard python package manager python -m pip install supirfactor_dynamical
.
It depends on PyTorch and the standard python scientific computing
packages (e.g. scipy, numpy, pandas).
Usage
from supirfactor_dynamical import (
SupirFactorBiophysical
)
# Construct model object
model = SupirFactorBiophysical(
prior_network, # Prior knowledge connectivity network [Genes x TFs]
output_activation='softplus' # Use softplus activation for transcriptional model output
)
# Set prediction parameter
model.set_time_parameters(
n_additional_predictions=10 # Make forward predictions in time during training
)
# Train model
model.train_model(
training_dataloader, # Training data in a torch DataLoader
500 # Epochs
)
# Save model
model.save("supirfactor_dynamical.h5")
Examples containing data loading, hyperparameter searching, and result testing are located in ./scripts/
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
File details
Details for the file supirfactor_dynamical-1.1.0.tar.gz
.
File metadata
- Download URL: supirfactor_dynamical-1.1.0.tar.gz
- Upload date:
- Size: 74.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99bd34a962c0e5a06e325086f75d4616c10474c4fea9680808bcffae0d7f4116 |
|
MD5 | 43339c3293c3c0b52f876437939b0516 |
|
BLAKE2b-256 | 7ddcbdc75c14e86489e0f13439900466874540455cf4570520b46156e3a891ca |
File details
Details for the file supirfactor_dynamical-1.1.0-py3-none-any.whl
.
File metadata
- Download URL: supirfactor_dynamical-1.1.0-py3-none-any.whl
- Upload date:
- Size: 106.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2270103e22aaa21a3d287709256956e48c93685f210a5b7e1cb2328107f8f5c7 |
|
MD5 | 7d3e4f747de116466dcc902c73f66c31 |
|
BLAKE2b-256 | f61d475a91f484f87dbed2cbfde31b1abd85a8f4df49db9dc18292251a9f8fd9 |