Skip to main content

Phenotype simulator for GRGs

Project description

grg_pheno_sim

This is a code repository to simulates phenotypes on GRGs (genotype representation graphs). The simulator first simulates effect sizes based on the user's desired distribution model (a wide spectrum of options are provided, both for simulation of single and multiple causal mutations at a go), computes the genetic values by passing the effect sizes down the genotype representation graph, and then adds simulated environmental noise to obtain the final phenotypes for the individuals in the graph. Normalization of genetic values is provided as well, either prior to adding environmental noise or after noise is added, according to the user's desire. The simulator offers the simulation of binary phenotypes as well, in addition to simulation on multiple GRGs simultaneously. Finally, options to obtain standardized outputs for both effect sizes (.par files) and phenotypes (.phen files) are included as well.

The folder grg_pheno_sim contains all the primary source code for the simulator. The demos folder contains ipynb notebooks with sample uses and demomstrations of the different stages of the phenotype simulator. It also contains incremental verifications of outputs to ensure accurate simulation. The test_phenotype_sim folder contains a suite of test functions used in the demos.

Installation

Installing from pip

If you just want to use the tools offered by grg_pheno_sim then you can install via pip (from PyPi)

pip install grg_pheno_sim

Installing from source

  1. Clone the repository
  2. If you wish to install the package without any changes to source code, use pip install /path/to/grg_pheno_sim/ (this is for standard installation)
  3. If you wish to install the package and modify the source code, use pip install -e /path/to/grg_pheno_sim/ (this is for development installation)

Usage

The demos folder contains a vast repository of use cases for the phenotype simulator, including sample outputs and standardized outputs commands (the output files themselves are excluded from the GitHub repo but can be easily obtained by running the appropriate notebook).

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

grg_pheno_sim-1.2.tar.gz (30.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

grg_pheno_sim-1.2-py3-none-any.whl (35.1 kB view details)

Uploaded Python 3

File details

Details for the file grg_pheno_sim-1.2.tar.gz.

File metadata

  • Download URL: grg_pheno_sim-1.2.tar.gz
  • Upload date:
  • Size: 30.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for grg_pheno_sim-1.2.tar.gz
Algorithm Hash digest
SHA256 c4d8213f1e19f5d2bf7dd246922d85b86bf35724b13d129c161fbe4415054924
MD5 98426721af9701f0fa866b4aae935d87
BLAKE2b-256 b259d20717a1809f1aead9796527cbccf55a8f2cc53463fe40e72b48d78ad3fb

See more details on using hashes here.

File details

Details for the file grg_pheno_sim-1.2-py3-none-any.whl.

File metadata

  • Download URL: grg_pheno_sim-1.2-py3-none-any.whl
  • Upload date:
  • Size: 35.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for grg_pheno_sim-1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f42454ace09ff3b6ab207a5bce53587eb37269c5af08517a5a295707ec03bfef
MD5 4f26ff74733031fa5d9658785df118d6
BLAKE2b-256 c59d16509cec19483a74c7105417961c3508bede891cd255c6f346dd8e775830

See more details on using hashes here.

Supported by

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