Skip to content

Commit d2b2f33

Browse files
committed
Always trim output from Bcftools
1 parent 269a91e commit d2b2f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/pipeline/ProcessVariantsHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,7 @@ private static String countUsingBcfTools(File vcf, Logger log) throws PipelineJo
501501
{
502502
BcftoolsRunner wrapper = new BcftoolsRunner(log);
503503

504-
return wrapper.executeWithOutput(Arrays.asList(wrapper.getBcfToolsPath().getPath(), "index", "-n", vcf.getPath()));
504+
return StringUtils.trimToNull(wrapper.executeWithOutput(Arrays.asList(wrapper.getBcfToolsPath().getPath(), "index", "-n", vcf.getPath())));
505505
}
506506

507507
public static String getVCFLineCount(File vcf, Logger log, boolean passOnly, boolean useBcfTools) throws PipelineJobException

0 commit comments

Comments
 (0)