Skip to content

Commit dc18caf

Browse files
committed
Bugfix long-standing issue with VCF sorting
1 parent 68f64e1 commit dc18caf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/util/SequenceUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public static void sortROD(File input, Logger log, Integer startColumnIdx) throw
452452
//then sort/append the records
453453
CommandWrapper wrapper = SequencePipelineService.get().getCommandWrapper(log);
454454
String cat = isCompressed ? "zcat" : "cat";
455-
wrapper.execute(Arrays.asList("/bin/sh", "-c", cat + " '" + input.getPath() + "' | grep -v '^#' | sort -s -V -k1,1f" + (startColumnIdx == null ? "" : " -k" + startColumnIdx + "," + startColumnIdx + "n")), ProcessBuilder.Redirect.appendTo(sorted));
455+
wrapper.execute(Arrays.asList("/bin/sh", "-c", cat + " '" + input.getPath() + "' | grep -v '^#' | sort -V -k1,1" + (startColumnIdx == null ? "" : " -k" + startColumnIdx + "," + startColumnIdx + "n")), ProcessBuilder.Redirect.appendTo(sorted));
456456

457457
if (isCompressed)
458458
{

0 commit comments

Comments
 (0)