diff --git a/clinker/align.py b/clinker/align.py index 9965bfb..f2c9ff0 100644 --- a/clinker/align.py +++ b/clinker/align.py @@ -266,6 +266,10 @@ def from_dict(cls, d): ga._alignment_indices[aln.target.uid][aln.query.uid] = aln.uid ga._cluster_names[aln.uid] = (aln.query.uid, aln.target.uid) + for group in d["groups"]: + gr = Group.from_dict(group) + ga.groups.append(gr) + return ga def __str__(self): diff --git a/setup.py b/setup.py index 0824ec2..00351b3 100644 --- a/setup.py +++ b/setup.py @@ -36,7 +36,7 @@ def get_version(): "biopython>=1.75", "numpy>=1.13.3", "scipy>=1.3.3", - "disjoint-set>=0.7.1" + "disjoint-set>=0.7.1", "gffutils", ], python_requires=">=3.6",