Skip to content

Commit 96a42f7

Browse files
author
nadiadavidson
committed
Fixes issue with failed graphs reporting empty sequence
1 parent d33de75 commit 96a42f7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

BuildSuperTranscript.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ def SuperTran(fname,verbose=False):
196196
if(verbose): print("One\n")
197197
seq = next(iter(transcripts.values())) #Python 3 specific codee...
198198
cluster_id = (fname.split('/')[-1]).split('.fasta')[0]
199-
anno = get_annotation_line(cluster_id,1,str(len(seq)),cluster_id)
199+
anno = get_annotation_line(cluster_id,'1',str(len(seq)),cluster_id)
200200

201201
else:
202202
#Try topo sorting a graph
@@ -214,7 +214,7 @@ def SuperTran(fname,verbose=False):
214214
temp = len(val)
215215
seq = ''.join(val)
216216
cluster_id = (fname.split('/')[-1]).split('.fasta')[0]
217-
anno = get_annotation_line(cluster_id,1,str(len(seq)),cluster_id)
217+
anno = get_annotation_line(cluster_id,'1',str(len(seq)),cluster_id)
218218
whirl_status=-1
219219
transcript_status=-1
220220
return(seq,anno,whirl_status,transcript_status)

0 commit comments

Comments
 (0)