Skip to content

Commit

Permalink
trimming seqs
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Apr 16, 2015
1 parent 5366bbe commit a898486
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion voseq/create_dataset/utils.py
Expand Up @@ -64,7 +64,8 @@ def convert_lists_to_dataset(self, partitions):
if aa_sequence.strip() == '':
self.warnings.append("Sequence for %s %s was empty" % (voucher_code, this_gene))

out += [line[0] + '\n' + sequence + '\n']
sequence = strip_question_marks(sequence)[0]
out += [line[0] + '\n' + sequence.replace('?', 'N') + '\n']
aa_out += [line[0] + '\n' + aa_sequence + '\n']

dataset_str = ''.join(out)
Expand Down

0 comments on commit a898486

Please sign in to comment.