gpmap
¶
The Pandas DataFrame for genotype-phenotype (GP) map data.
The GenotypePhenotypeMap
is a core object for a suite of packages written
in the Harms Lab. It organizes and standardizes genotype-phenotype map data.
Basic Example¶
# Import the GenotypePhenotypeMap
from gpmap import GenotypePhenotypeMap
# The data
wildtype = 'AA'
genotypes = ['AA', 'AT', 'TA', 'TT']
phenotypes = [0.1, 0.5, 0.2, 0.8]
stdeviations = [0.05, 0.05, 0.05, 0.05]
# Initialize a GenotypePhenotype object
gpm = GenotypePhenotypeMap(wildtype, genotypes, phenotypes,
stdeviations=stdeviations)
# Show the dataFrame
gpm.data