Skip to content

Commit 9abb3e2

Browse files
committed
Switch CovidSeq module to mssql-only
1 parent 139fe60 commit 9abb3e2

File tree

1 file changed

+2
-2
lines changed
  • SequenceAnalysis/src/org/labkey/sequenceanalysis/run/util

1 file changed

+2
-2
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/util/GxfSorter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ public File sortGtf(File input, @Nullable File output) throws PipelineJobExcepti
8989
writer.println("OUT_GTF='" + outputFile.getPath() + "'");
9090

9191
String cat = inputIsGzip ? "zcat" : "cat";
92-
writer.println(cat + " \"$GTF\" | awk '{ if ($1 ~ \"^#\" ) print $0; else exit; }' > \"$OUT_GTF\"");
93-
writer.println(cat + " \"$GTF\" | grep -v '#' | awk -v OFS='\\t' ' {");
92+
writer.println(cat + " \"$GTF\" | grep -v -e '^$' | awk '{ if ($1 ~ \"^#\" ) print $0; else exit; }' > \"$OUT_GTF\"");
93+
writer.println(cat + " \"$GTF\" | grep -v -e '^$' | grep -v '#' | awk -v OFS='\\t' ' {");
9494
writer.println("so = 3");
9595
writer.println("if (tolower($3) == \"gene\")");
9696
writer.println(" so = 1");

0 commit comments

Comments
 (0)