def read_kinship(filename):
    kindict = {}
    with open(filename) as f:
        for line in f:
            fam, ida, idb, phi = line.strip().split()
            kindict[frozenset({(fam, ida), (fam, idb)})] = float(phi)
    return kindict

@@ -1,8 +1,52 @@
+from pydigree.io import smartopen as open%0A%0A%0A
 def read

allow compressed files