Skip to main content

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 for 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 installed.

Metadata

Release files for gpmap 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gpmap 0.7.0
File Size Uploaded
gpmap-0.7.0.tar.gz 136.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gpmap 0.7.0
File Interpreter ABI Platform
gpmap-0.7.0-py3-none-any.whl Python 3 none any Details

Total release size: 160.2 kB

Release files / gpmap-0.7.0.tar.gz

Download URL gpmap-0.7.0.tar.gz
Size 136.2 kB
Tags Source
SHA-256 checksum
How to use checksums
777c441a57c2dc5f8def28e7f2f588da5e97b6d9f9310aec2e0118dd358089b4
BLAKE2b-256 checksum
How to use checksums
55adf23dd15f9043637494dea2c128fee5037b174c997b0e52ede85e7fd96d93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

Release files / gpmap-0.7.0-py3-none-any.whl

Download URL gpmap-0.7.0-py3-none-any.whl
Size 24.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8de755857f84a1881b734989859002e5c751f261a6494aebc65343987c0a3623
BLAKE2b-256 checksum
How to use checksums
0d7f33e5dc9f4e75a9406afa75b99749143d63f7ca2063dc1875ecb4aee41e6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.2.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.7.0 This release

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page