Skip to content

Commit

Permalink
fixed issue where file reader stalls at the pre-handled fasta header
Browse files Browse the repository at this point in the history
  • Loading branch information
endixk committed Oct 19, 2022
1 parent a86fed8 commit b839579
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/process/ContigDragProcess.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static List<String> drag(String seqPath, BlockProfileEntity bp) throws ja

FileStream outStream = new FileStream(ctgPath, 'w');
outStream.isTemp();
Prompt.talk("Dragging block-containing contig " + bp.getCtg(ci) +
Prompt.talk("Dragging block-containing contig " + ctg +
" from the assembly on : " + ANSIHandler.wrapper(outStream.PATH, 'y'));

outStream.println(line);
Expand All @@ -51,6 +51,13 @@ public static List<String> drag(String seqPath, BlockProfileEntity bp) throws ja

outStream.close();
}
else {
line = seqStream.readLine();
while(line != null) {
if(line.startsWith(">")) break;
line = seqStream.readLine();
}
}
ci++;
}
else {
Expand Down

0 comments on commit b839579

Please sign in to comment.