Exemple #1
0
 def test_unique_id_map(self):
     """unique_id_map should return map of seqs:unique representatives"""
     seqs = {'a': 'AG', 'b': 'AG', 'c': 'CC', 'd': 'CT'}
     obs = unique_id_map(seqs)
     exp = {'c': ['c'], 'd': ['d'], 'a': ['a', 'b'], 'b': ['a', 'b']}
     # can't predict if a or b
     for k in obs:
         assert obs[k] in exp[k]
 def test_unique_id_map(self):
     """unique_id_map should return map of seqs:unique representatives"""
     seqs = {'a': 'AG', 'b': 'AG', 'c': 'CC', 'd': 'CT'}
     obs = unique_id_map(seqs)
     exp = {'c': ['c'], 'd': ['d'], 'a': ['a', 'b'], 'b': ['a', 'b']}
     # can't predict if a or b
     for k in obs:
         assert obs[k] in exp[k]
 def test_unique_id_map(self):
     """unique_id_map should return map of seqs:unique representatives"""
     seqs = {"a": "AG", "b": "AG", "c": "CC", "d": "CT"}
     obs = unique_id_map(seqs)
     exp = {"c": ["c"], "d": ["d"], "a": ["a", "b"], "b": ["a", "b"]}
     # can't predict if a or b
     for k in obs:
         assert obs[k] in exp[k]