def test_trim_all_sequences_no_rev(self): obs = _trim_all_sequences(self.aligned_seqs, {"start": 7, "end": None}) obs_seqs = { seq.metadata['id']: str(seq) for seq in obs.view(DNAIterator) } self.assertDictEqual(obs_seqs, self.exp_seqs_only_fwd)
def test_trim_all_sequences(self): obs = _trim_all_sequences(self.aligned_seqs, {"start": 7, "end": 104}) obs_seqs = { seq.metadata['id']: str(seq) for seq in obs.view(DNAIterator) } self.assertDictEqual(obs_seqs, self.exp_seqs_both_primers)