Skip to content
Snippets Groups Projects

working code

Merged Samuel Mondal requested to merge new into master
1 file
+ 7
7
Compare changes
  • Side-by-side
  • Inline
@@ -14,16 +14,16 @@ def exon_concatenation(
@@ -14,16 +14,16 @@ def exon_concatenation(
to_write_to_file = []
to_write_to_file = []
for x in range(int(len(lines)/2)):
for x in range(int(len(lines)/2)):
if x == 0:
if x == 0:
annotation = lines[0]
annotation = lines[0][0:16]
read = lines[1]
read = lines[1][:-1]
if x >= 1:
if x >= 1:
if lines[2*x] == lines[2*(x-1)]:
if lines[2*x][1:16] == lines[2*(x-1)][1:16]:
read+= lines[(2*x)+1]
read+= lines[(2*x)+1][:-1]
else:
else:
to_write_to_file.append(annotation)
to_write_to_file.append(annotation)
to_write_to_file.append(read)
to_write_to_file.append(read)
annotation = lines[2*x]
annotation = lines[2*x][0:16]
read = lines[(2*x)+1]
read = lines[(2*x)+1][:-1]
to_write_to_file.append(annotation)
to_write_to_file.append(annotation)
to_write_to_file.append(read)
to_write_to_file.append(read)
return to_write_to_file
return to_write_to_file
\ No newline at end of file
Loading