# supirfactor-dynamical
[](https://badge.fury.io/py/supirfactor-dynamical)
[](https://github.com/GreshamLab/supirfactor-dynamical/actions/workflows/python-package.yml/)
[](https://codecov.io/gh/GreshamLab/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](https://pytorch.org/get-started/locally/) 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/`
Raw data
{
"_id": null,
"home_page": "https://github.com/GreshamLab/supirfactor-dynamical",
"name": "supirfactor-dynamical",
"maintainer": "Chris Jackson",
"docs_url": null,
"requires_python": "",
"maintainer_email": "cj59@nyu.edu",
"keywords": "",
"author": "Chris Jackson",
"author_email": "cj59@nyu.edu",
"download_url": "https://files.pythonhosted.org/packages/65/46/a698b54da42b57d399a3c1c173dbdea40a90e2efcd004c521de5cd7a4b13/supirfactor_dynamical-1.0.0.tar.gz",
"platform": null,
"description": "# supirfactor-dynamical\n\n[](https://badge.fury.io/py/supirfactor-dynamical)\n[](https://github.com/GreshamLab/supirfactor-dynamical/actions/workflows/python-package.yml/)\n[](https://codecov.io/gh/GreshamLab/supirfactor-dynamical)\n\nThis is a PyTorch model package for creating dynamical, biophysical models of\ntranscriptional output and regulation.\n\n### Installation\n\nInstall this package using the standard python package manager `python -m pip install supirfactor_dynamical`.\nIt depends on [PyTorch](https://pytorch.org/get-started/locally/) and the standard python scientific computing\npackages (e.g. scipy, numpy, pandas).\n\n### Usage\n\n```\nfrom supirfactor_dynamical import (\n SupirFactorBiophysical\n)\n\n# Construct model object\nmodel = SupirFactorBiophysical(\n prior_network, # Prior knowledge connectivity network [Genes x TFs]\n output_activation='softplus' # Use softplus activation for transcriptional model output\n)\n\n# Set prediction parameter\nmodel.set_time_parameters(\n n_additional_predictions=10 # Make forward predictions in time during training\n)\n\n# Train model\nmodel.train_model(\n training_dataloader, # Training data in a torch DataLoader\n 500 # Epochs\n)\n\n# Save model\nmodel.save(\"supirfactor_dynamical.h5\")\n```\n\nExamples containing data loading, hyperparameter searching, and result testing are located in `./scripts/`\n",
"bugtrack_url": null,
"license": "",
"summary": "Dynamical Model Extension of the Supirfactor Model",
"version": "1.0.0",
"project_urls": {
"Homepage": "https://github.com/GreshamLab/supirfactor-dynamical"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "e42dbc497d7ccee20c1bd6e87f14adc7763f614c9b6ac67341c9c84cfcbd0b65",
"md5": "b8a08dbf28d87c8d74eb9d8000edbd77",
"sha256": "60b46fcb57d41b20335e0b1848a4829996c18351c99492815209a124c357838f"
},
"downloads": -1,
"filename": "supirfactor_dynamical-1.0.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b8a08dbf28d87c8d74eb9d8000edbd77",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 57182,
"upload_time": "2023-09-05T17:27:19",
"upload_time_iso_8601": "2023-09-05T17:27:19.342011Z",
"url": "https://files.pythonhosted.org/packages/e4/2d/bc497d7ccee20c1bd6e87f14adc7763f614c9b6ac67341c9c84cfcbd0b65/supirfactor_dynamical-1.0.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6546a698b54da42b57d399a3c1c173dbdea40a90e2efcd004c521de5cd7a4b13",
"md5": "23b64feabfb3bc11fe1be1cb328fe705",
"sha256": "f215184fa406f4251135404d75f418f3d7aab72c431b29b423dc75b57bcd9a28"
},
"downloads": -1,
"filename": "supirfactor_dynamical-1.0.0.tar.gz",
"has_sig": false,
"md5_digest": "23b64feabfb3bc11fe1be1cb328fe705",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 42316,
"upload_time": "2023-09-05T17:27:21",
"upload_time_iso_8601": "2023-09-05T17:27:21.739390Z",
"url": "https://files.pythonhosted.org/packages/65/46/a698b54da42b57d399a3c1c173dbdea40a90e2efcd004c521de5cd7a4b13/supirfactor_dynamical-1.0.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-09-05 17:27:21",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "GreshamLab",
"github_project": "supirfactor-dynamical",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "supirfactor-dynamical"
}