Skip to main content

A Python API for managing genotype-phenotype map data

Project description

GPMap

Join the chat at https://gitter.im/harmslab/gpmap Documentation Status Build Status

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.

  1. Clone this repository:
git clone https://github.com/harmslab/gpmap
  1. Install the package using pipenv.
cd gpmap
pipenv install --dev -e .
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gpmap-0.5.0.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

gpmap-0.5.0-py2.py3-none-any.whl (32.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file gpmap-0.5.0.tar.gz.

File metadata

  • Download URL: gpmap-0.5.0.tar.gz
  • Upload date:
  • Size: 18.6 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.28.1 CPython/3.7.1

File hashes

Hashes for gpmap-0.5.0.tar.gz
Algorithm Hash digest
SHA256 31761dede8b5d4b3acec55c10d1e7829c1e096bd66bdf7642cce5127a01f6fbb
MD5 f7ab150abe7154cb0db7f9b3315a08e0
BLAKE2b-256 0810721985cefe61d23a25d439c9fa70a305a9a12ffad920627efdbc92896450

See more details on using hashes here.

Provenance

File details

Details for the file gpmap-0.5.0-py2.py3-none-any.whl.

File metadata

  • Download URL: gpmap-0.5.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 32.6 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.28.1 CPython/3.7.1

File hashes

Hashes for gpmap-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e0651370fef967ff9d299736cd88ec623a06e80e052a96b4945143dcf7e1d898
MD5 35d8c2cb3316e26fa42c574c8e280bb9
BLAKE2b-256 e20f9c89e660a56c840f6f7cc5e818e617a0f17b40e205692fd72d9c2cdcce93

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