Skip to main content

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. In addition, there is an option to use normalized genotypes. 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.

Documentation can be found here.

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).

Metadata

Release files for grg-pheno-sim 1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for grg-pheno-sim 1.5
File Size Uploaded Provenance Actions
grg_pheno_sim-1.5.tar.gz 1.4 MB Without provenance Details for grg_pheno_sim-1.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for grg-pheno-sim 1.5
File Interpreter ABI Platform Actions
grg_pheno_sim-1.5-py3-none-any.whl Python 3 none any Details for grg_pheno_sim-1.5-py3-none-any.whl

Total release size: 1.5 MB

Release files / grg_pheno_sim-1.5.tar.gz

Download URL grg_pheno_sim-1.5.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
3901eeea099b83932509c95ca3e2884197171b208eb09edd8be628488cbd6a2c
BLAKE2b-256 checksum
How to use checksums
68a735335f819d3552e3771743b9d3a4fdd6abd9052e7864059eb249de8b91df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / grg_pheno_sim-1.5-py3-none-any.whl

Download URL grg_pheno_sim-1.5-py3-none-any.whl
Size 42.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c39ddab81db34213f12e930b2017cf3a6dd059ffeb4f7073fe64e352f06a4a3d
BLAKE2b-256 checksum
How to use checksums
6a0f3b713e1069734d8f505f9ca71c756d5efa4e464f6d678e3f658018fe40f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for grg-pheno-sim 1.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page