Skip to content

Commit

Permalink
fixed for datasets with partitions
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Aug 5, 2015
1 parent 88a80e0 commit 1479f1e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions voseq/create_dataset/dataset.py
Expand Up @@ -949,7 +949,6 @@ def convert_lists_to_dataset(self, partitions):
)

if voucher_code not in self.vouchers_to_drop:
print(i)
line = i.split(' ')
if len(line) > 1:
sequence = line[-1]
Expand All @@ -963,13 +962,13 @@ def convert_lists_to_dataset(self, partitions):
if self.aminoacids is not True:
sequence = self.degenerate(sequence, ThisGeneAndPartition.this_gene_model)

gene_codes_and_lengths[ThisGeneAndPartition.this_gene] = len(sequence)
gene_codes_and_lengths[ThisGeneAndPartition.this_gene] = len(sequence)

tmp_seq = sequence.replace('-', '')
if len(tmp_seq) < 1:
out = ['\n[{}]'.format(voucher_code)]
else:
out += [line[0].ljust(55, ' ') + sequence]
tmp_seq = sequence.replace('-', '')
if len(tmp_seq) < 1:
out = ['\n[{}]'.format(voucher_code)]
else:
out += [line[0].ljust(55, ' ') + sequence]

number_chars = 0
for k in gene_codes_and_lengths.keys():
Expand Down

0 comments on commit 1479f1e

Please sign in to comment.