Skip to content

Commit

Permalink
rm redundant lines
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Feb 13, 2015
1 parent cc3cb0b commit 30ce4c1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions voseq/create_dataset/utils.py
Expand Up @@ -239,10 +239,7 @@ def get_sequence_based_on_codon_positions(self, gene_code, seq):

# ALL overrides 1st, 2nd, 3rd codon positions. We should return all codons
if 'ALL' in self.codon_positions:
if self.partition_by_positions == 'ONE':
return (chain_and_flatten(first_position, second_position, third_position))
else:
return (first_position, second_position, third_position)
return (first_position, second_position, third_position)

if '1st' in self.codon_positions \
and '2nd' not in self.codon_positions \
Expand Down

0 comments on commit 30ce4c1

Please sign in to comment.