Skip to content

Commit db2b560

Browse files
committed
Compress KING output
1 parent 405f1b2 commit db2b560

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/variant/KingInferenceStep.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
import org.labkey.api.sequenceanalysis.pipeline.VariantProcessingStepOutputImpl;
2424
import org.labkey.api.sequenceanalysis.run.AbstractCommandPipelineStep;
2525
import org.labkey.api.sequenceanalysis.run.AbstractCommandWrapper;
26+
import org.labkey.api.util.Compress;
2627
import org.labkey.sequenceanalysis.pipeline.ProcessVariantsHandler;
2728

2829
import java.io.File;
@@ -180,14 +181,15 @@ public Output processVariants(File inputVCF, File outputDirectory, ReferenceGeno
180181
throw new PipelineJobException("Unable to find file: " + kinshipOutput.getPath());
181182
}
182183

183-
File kinshipOutputTxt = new File(kinshipOutput.getPath() + ".txt");
184+
File kinshipOutputTxt = new File(kinshipOutput.getPath() + ".txt.gz");
184185
if (kinshipOutputTxt.exists())
185186
{
186187
kinshipOutputTxt.delete();
187188
}
188189

189190
try
190191
{
192+
kinshipOutput = Compress.compressGzip(kinshipOutput);
191193
FileUtils.moveFile(kinshipOutput, kinshipOutputTxt);
192194
}
193195
catch (IOException e)

0 commit comments

Comments
 (0)