Skip to main content

Dynamical Model Extension of the Supirfactor Model

Project description

supirfactor-dynamical

PyPI version CI codecov

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

supirfactor_dynamical-1.0.0.tar.gz (42.3 kB view hashes)

Uploaded Source

Built Distribution

supirfactor_dynamical-1.0.0-py3-none-any.whl (57.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page