Skip to main content

GPGraph

Genotype-phenotype maps in NetworkX

Port a GenotypePhenotypeMap to a NetworkX Digraph.

Basic Example

GPGraph follows NetworkX syntax. Initialize a graph, add the genotype-phenotype map object, and draw the graph. This library even comes with a draw method, draw_gpgraph, suited for genotype-phenotype graphs.

from gpmap.simulate import MountFujiSimulation
from gpgraph import GenotypePhenotypeGraph
from gpgraph.pyplot import draw_gpgraph, draw_edges

# Simulate a genotype-phenotype map
sim = MountFujiSimulation.from_length(4, roughness_width=1)

# Turn the genotype-phenotype map into a networkx object
G = GenotypePhenotypeGraph(sim)

# Draw the graph
figure = draw_gpgraph(G,
                      edge_colors = 'gray', 
                      node_size=400)

Install

Clone this repo and install with pip:

pip install -e .

To develop

Clone this repo and run setup.py as follows

python setup.py develop --user

This way, if only python scripts are being changed nothing has to be reinstalled.

Metadata

Release files for gpgraph 0.2.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 gpgraph 0.2.0
File Size Uploaded Provenance Actions
gpgraph-0.2.0.tar.gz 131.0 kB Without provenance Details for gpgraph-0.2.0.tar.gz

Built distribution (wheel)

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

Total release size: 150.4 kB

Release files / gpgraph-0.2.0.tar.gz

Download URL gpgraph-0.2.0.tar.gz
Size 131.0 kB
Tags Source
SHA-256 checksum
How to use checksums
34c8ea8b21eb06b1fe4ddbdf7b0358f96dd5f982f62cf5295278baaf420151bf
BLAKE2b-256 checksum
How to use checksums
11178f9c1f831d3dbfad1777d184781db885946b34387c6050236fb9d0099d98
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 / gpgraph-0.2.0-py3-none-any.whl

Download URL gpgraph-0.2.0-py3-none-any.whl
Size 19.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
79f8aacd4a87aa8059123796af42e2f83e7571742cecf90195f44143b80af8d9
BLAKE2b-256 checksum
How to use checksums
1b2448b7812701b76dfd8743b581b7438f5b669cb37d45e249d3cb1d6c37f58d
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

Security for gpgraph 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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