fix method name for set.difference
@@ -43,8 +43,8 @@ if __name__ == '__main__':
if not set(features.keys())==set(args.genes):
print("WARNING: supplied genes don't match the annotation")
- print("the following features are in the annotation by not supplied as genes:", set(features.keys()).diff(args.genes))
- print("the following features are in the supplied as genes but not the annotation:", set(args.genes).diff(features.keys()))
+ print("the following features are in the annotation by not supplied as genes:", set(features.keys()).difference(args.genes))
+ print("the following features are in the supplied as genes but not the annotation:", set(args.genes).difference(features.keys()))
T = Phylo.read(args.tree, 'newick')
leafs = {n.name for n in T.get_terminals()}
