A Python API for managing genotype-phenotype map data
Project description
GPMap
A Python API for managing genotype-phenotype map data
GPMap defines a flexible object for managing genotype-phenotype (GP) map data. At it's core, it stores all data in Pandas DataFrames and thus, interacts seamlessly with the PyData egosystem.
To visualize genotype-phenotype objects created by GPMap, checkout GPGraph.
Basic example
Import the package's base object.
from gpmap import GenotypePhenotypeMap
Pass your data to the object.
# Data
wildtype = "AAA"
genotypes = ["AAA", "AAT", "ATA", "TAA", "ATT", "TAT", "TTA", "TTT"]
phenotypes = [0.1, 0.2, 0.2, 0.6, 0.4, 0.6, 1.0, 1.1]
stdeviations = [0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05, 0.05]
# Initialize the object
gpm = GenotypePhenotypeMap(wildtype,
genotypes,
phenotypes,
stdeviations=stdeviations)
# Check out the data.
gpm.data
Or load a dataset from disk.
gpm = GenotypePhenotypeMap.read_json("data.json")
Installation
Users This simplest way to install this package is using pip:
pip install gpmap
Developers
The recommended way to install this package fro development is using pipenv
.
- Clone this repository:
git clone https://github.com/harmslab/gpmap
- Install the package using pipenv.
cd gpmap
pipenv install --dev -e .
- Run tests using pytest
pytest
Dependencies
The following modules are required. Also, the examples/tutorials are written in Jupyter notebooks and require IPython to be install.
Project details
Release history Release notifications | RSS feed
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 gpmap-0.6.0.tar.gz
.
File metadata
- Download URL: gpmap-0.6.0.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6a70501ec2f9bf0cb889450ec2a15f5101291a215a4c3924e7d6d755272cc183 |
|
MD5 | d9b81b1acff3347bbdc285331d2b0075 |
|
BLAKE2b-256 | fc4b70fdecb6d46a9edf7d0594b8cef782db9be2324f9da3117720dbc3a86062 |
Provenance
File details
Details for the file gpmap-0.6.0-py2.py3-none-any.whl
.
File metadata
- Download URL: gpmap-0.6.0-py2.py3-none-any.whl
- Upload date:
- Size: 33.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.5.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 478571b4638f3c1b5bbde04f2a01d414270dbf4b99ddf364fde52b3aa5ab76e5 |
|
MD5 | 6b168b75c1bc6d47e2ebe5917b8868de |
|
BLAKE2b-256 | 4f61e7386ea94df233d62be203ad1e3518e509e31a3747d635627fbe96e42c61 |