Skip to content

Commit 81d1b4e

Browse files
committed
PBSV debugging
1 parent 611dee6 commit 81d1b4e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SequenceAnalysis/src/org/labkey/sequenceanalysis/run/analysis/PbsvJointCallingHandler.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import htsjdk.samtools.util.Interval;
44
import org.apache.commons.io.FileUtils;
5+
import org.apache.commons.lang3.StringUtils;
56
import org.jetbrains.annotations.Nullable;
67
import org.json.JSONObject;
78
import org.labkey.api.module.ModuleLoader;
@@ -221,7 +222,8 @@ private File runPbsvCall(JobContext ctx, List<File> inputs, ReferenceGenome geno
221222

222223
for (File s : inputs)
223224
{
224-
String ret = runner.executeWithOutput(Arrays.asList("/bin/bash", "-c", tabix.getExe().getPath() + " -l '" + s.getPath() + "' | grep -e '" + contig + "' | wc -l"));
225+
String ret = StringUtils.trimToNull(runner.executeWithOutput(Arrays.asList("/bin/bash", "-c", tabix.getExe().getPath() + " -l '" + s.getPath() + "' | grep -e '" + contig + "' | wc -l")));
226+
ctx.getLogger().debug(s.getName() + ": [" + ret + "]");
225227
if ("0".equals(ret))
226228
{
227229
ctx.getLogger().info("Sample is missing contig: " + contig + ", skipping: " + s.getPath());

0 commit comments

Comments
 (0)