aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pyhegp/pyhegp.py5
-rw-r--r--pyhegp/serialization.py3
2 files changed, 4 insertions, 4 deletions
diff --git a/pyhegp/pyhegp.py b/pyhegp/pyhegp.py
index 9fa9679..0c0d237 100644
--- a/pyhegp/pyhegp.py
+++ b/pyhegp/pyhegp.py
@@ -22,7 +22,7 @@ import click
import numpy as np
from scipy.stats import special_ortho_group
-from pyhegp.serialization import Summary, read_summary, write_summary
+from pyhegp.serialization import Summary, read_summary, write_summary, read_genotype
Stats = namedtuple("Stats", "n mean std")
@@ -56,9 +56,6 @@ def pool_stats(list_of_stats):
/ (n - 1))
return Stats(n, mean, std)
-def read_genotype(genotype_file):
- return np.loadtxt(genotype_file, delimiter=",")
-
@click.group()
def main():
pass
diff --git a/pyhegp/serialization.py b/pyhegp/serialization.py
index cdf1587..9b0401a 100644
--- a/pyhegp/serialization.py
+++ b/pyhegp/serialization.py
@@ -51,3 +51,6 @@ def write_summary(file, summary):
np.savetxt(file,
np.row_stack((summary.mean, summary.std)),
fmt="%.8g")
+
+def read_genotype(genotype_file):
+ return np.loadtxt(genotype_file, delimiter=",")