Skip to content

Commit 137d896

Browse files
committed
Debug location of cellrange executable
1 parent 7de9d47 commit 137d896

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

singlecell/src/org/labkey/singlecell/run/CellRangerGexCountStep.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,20 +637,22 @@ public enum Chemistry
637637

638638
public File getInclusionListFile(Logger logger) throws PipelineJobException
639639
{
640-
File exe = new CellRangerWrapper(logger).getExe();
640+
File exe = new CellRangerWrapper(logger).getExe().getAbsoluteFile();
641+
logger.debug("cellranger executable: " + exe.getPath());
641642
if (Files.isSymbolicLink(exe.toPath()))
642643
{
643644
try
644645
{
645-
exe = Files.readSymbolicLink(exe.toPath()).toFile();
646+
exe = Files.readSymbolicLink(exe.toPath()).toRealPath().toFile();
647+
logger.debug("cellranger symlink target: " + exe.getPath());
646648
}
647649
catch (IOException e)
648650
{
649651
throw new PipelineJobException(e);
650652
}
651653
}
652654

653-
File il = new File(exe.getAbsoluteFile().getParentFile(), "lib/python/cellranger/barcodes/" + _inclusionListFile);
655+
File il = new File(exe.getParentFile(), "lib/python/cellranger/barcodes/" + _inclusionListFile);
654656
if (!il.exists())
655657
{
656658
throw new PipelineJobException("Unable to find file: " + il.getPath());

0 commit comments

Comments
 (0)