From 30ce4c1ca3ddf5d812a6bbd53d0f6c215deb7a25 Mon Sep 17 00:00:00 2001 From: carlosp420 Date: Fri, 13 Feb 2015 15:02:58 +0200 Subject: [PATCH] rm redundant lines --- voseq/create_dataset/utils.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/voseq/create_dataset/utils.py b/voseq/create_dataset/utils.py index edd1d9e2..33295655 100644 --- a/voseq/create_dataset/utils.py +++ b/voseq/create_dataset/utils.py @@ -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 \