Skip to content
Snippets Groups Projects
Commit 6adfc082 authored by Samuel Mondal's avatar Samuel Mondal
Browse files

Changing output from a list to a list of tuples

parent 319c242f
Branches
No related tags found
1 merge request!39Changing list with alternating headers and sequences into list of tuples
......@@ -20,10 +20,8 @@ def exon_concatenation(
if annotation[-1] == line1[0:16]:
read += line2[:-1]
elif annotation[-1] != line1[0:16]:
fasta_format_list.append(annotation[-1])
fasta_format_list.append(read)
fasta_format_list.append((annotation[-1],read))
annotation.append(line1[0:16])
read = line2[:-1]
fasta_format_list.append(annotation[-1])
fasta_format_list.append(read)
fasta_format_list.append((annotation[-1],read))
return fasta_format_list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment