Skip to main content

Install functions to simulate gene expression compendia

Project description

ponyo

Alexandra Lee and Casey Greene 2020

University of Pennsylvania

This repository is named after the the character Ponyo, from Hayao Miyazaki's animated film Ponyo, as she uses her magic to simulate a human appearance after getting a sample of human blood. The method simulates a compendia of new gene expression data based on existing gene expression data to learn a representation of gene expression patterns.

Installation

This package can be installed using pip:

pip install ponyo

How to use

Example notebooks using ponyo on test data can be found in human_tests

Additionally, this method has been used in simulate-expression-compendia repository.

Configuration file

The tables lists the core parameters required to generate simulated data using modules from ponyo. Those marked with * indicate those parameters that will vary depending on the type of approach .

Name Description
local_dir str: Parent directory on local machine to store intermediate results
scaler_transform_file str: File to store mapping from normalized to raw gene expression range
dataset_name str: Name for analysis directory containing notebooks using ponyo
simulation_type str: Name of simulation approach directory to store results locally
NN_architecture str: Name of neural network architecture to use. Format 'NN__'
learning_rate float: Step size used for gradient descent. In other words, it's how quickly the methods is learning
batch_size str: Training is performed in batches. So this determines the number of samples to consider at a given time
epochs int: Number of times to train over the entire input dataset
kappa float: How fast to linearly ramp up KL loss
intermediate_dim int: Size of the hidden layer
latent_dim int: Size of the bottleneck layer
epsilon_std float: Standard deviation of Normal distribution to sample latent space
validation_frac float: Fraction of input samples to use to validate for VAE training
num_simulated_samples* int: If using random sampling approach, simulate a compendia with these many samples
num_simulated_experiments* int: If using latent-transformation approach, simulate a compendia with these many experiments
num_simulated* int: If using template-based approach, simulate these many experiments
project_id* int: If using template-based approach, experiment id to use as template experiment
metadata_colname str: Column header that contains sample id that maps expression data and metadata

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

ponyo-0.1.tar.gz (13.4 kB view details)

Uploaded Source

Built Distribution

ponyo-0.1-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file ponyo-0.1.tar.gz.

File metadata

  • Download URL: ponyo-0.1.tar.gz
  • Upload date:
  • Size: 13.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.8

File hashes

Hashes for ponyo-0.1.tar.gz
Algorithm Hash digest
SHA256 e14d3b2bee461289e10aefa5c0a6bfc22d8ec7c7a992209da0bcfbb3a1f3e1c0
MD5 a13d7f3e0a81a06ae6c3ae2dae0b9547
BLAKE2b-256 a0453f31792fca070d161aab66c4182f110f71e8b8a990844247a2c57217c14a

See more details on using hashes here.

Provenance

File details

Details for the file ponyo-0.1-py3-none-any.whl.

File metadata

  • Download URL: ponyo-0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.4.2 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.44.1 CPython/3.6.8

File hashes

Hashes for ponyo-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 31ac7168a9d522da96ae86c6eecbf4fb8f048916e37a1d64672ead4ef1458cb8
MD5 742fb8048902a1ce3f3aa5ce523feef2
BLAKE2b-256 b9e4e1dd3b16e9830ca6a7e6f113c755dbc762c40f2316008d93eb2cb4f72b1f

See more details on using hashes here.

Provenance

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