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
To install this package, clone from source and use pip.
git clone https://github.com/harmslab/gpmap
cd gpmap
pip install -e .
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.4.4.tar.gz
.
File metadata
- Download URL: gpmap-0.4.4.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8115ccdb98a3c42b0643166ad203931308f62b717f007fb596886ea1c186bd24 |
|
MD5 | d533a6af1eef72047a3c2c3d8ac94b4e |
|
BLAKE2b-256 | 2b53a21a48ec14bc3b4fc169e46d32a1915683f99543db57345502321791266f |
Provenance
File details
Details for the file gpmap-0.4.4-py2.py3-none-any.whl
.
File metadata
- Download URL: gpmap-0.4.4-py2.py3-none-any.whl
- Upload date:
- Size: 29.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfb86bc37fb726e32f91f87f8ac6d72793364811827fc3cbaf0353d4705d4601 |
|
MD5 | c744a34a66716ea7e92c42b88ef068b0 |
|
BLAKE2b-256 | 3d00fd11b980fb1f18d1461ff83ff8b606f0df243aecc4d2c3d14b30b4c569fb |