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 and generic-expression-patterns repositories.
Setting random seeds
To keep the VAE training deterministic, you will need to set multiple random seeds:
- numpy random
- python random
- tensorflow random
For an example of this, see human_tests
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 |
dataset_name | str: Name for analysis directory containing notebooks using ponyo |
raw_data_filename | str: File storing raw gene expression data |
normalized_data_filename | str: File storing normalized gene expression data |
metadata_filename* | str: File containing metadata associated with data |
experiment_ids_filename* | str: File containing list of experiment ids that have gene expression data available |
scaler_transform_filename | str: File to store mapping from normalized to raw gene expression range |
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 |
metadata_delimiter* | str: Delimiter to parse metadata file |
metadata_experiment_colname* | str: Column header that contains experiment id that maps expression data and metadata |
metadata_sample_colname* | str: Column header that contains sample id that maps expression data and metadata |
project_id* | int: If using template-based approach, experiment id to use as template experiment |
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
Built Distribution
File details
Details for the file ponyo-0.3.tar.gz
.
File metadata
- Download URL: ponyo-0.3.tar.gz
- Upload date:
- Size: 13.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 76434f6e6974264b099b3fad3477c63da10c6bbe2bbb4f58ba1346dfd2fdc36f |
|
MD5 | 602574c1825b57917e82844b1295b5bf |
|
BLAKE2b-256 | c3e5b0fe2a95a02c289dbff5148281ad0bf681b205d81eb48c78a2a20d5d12c6 |
File details
Details for the file ponyo-0.3-py3-none-any.whl
.
File metadata
- Download URL: ponyo-0.3-py3-none-any.whl
- Upload date:
- Size: 15.0 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 57879d6c1e770fa2cdf1b8a5705d3c772f623f85e37a5fdfc252e7f652e608b9 |
|
MD5 | 4350ebf6ac37a6850be465b755bee9d2 |
|
BLAKE2b-256 | 2ae74e4fcf088430c25ea08782e14915543e0bd9c431515b24549c5e23b3e147 |