def get_diff_for_otu_maps(otu_map1, otu_map2):
 otus1 = set(otu_map1.keys())
 otus2 = set(otu_map2.keys())
 ids1 = set([x for otu in otus1 for x in otu_map1[otu]])
 ids2 = set([x for otu in otus2 for x in otu_map2[otu]])
 return ((ids1 - ids2), (ids2 - ids1))

def get_diff_for_otu_maps ( otu_map1 , otu_map2 ) : otus1 = set ( otu_map1 . keys ( ) ) otus2 = set ( otu_map2 . keys ( ) ) ids1 = set ( [ x for otu in otus1 for x in otu_map1 [ otu ] ] ) ids2 = set ( [ x for otu in otus2 for x in otu_map2 [ otu ] ] ) return ( ( ids1 - ids2 ) , ( ids2 - ids1 ) )
return reads in two otu_maps that are not shared otu_map1 .