Skip to content

Commit d75cf73

Browse files
committed
Debug cellranger/symlinks
1 parent 845757b commit d75cf73

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

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

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
import java.io.File;
5353
import java.io.IOException;
5454
import java.nio.file.Files;
55+
import java.nio.file.Path;
5556
import java.util.ArrayList;
5657
import java.util.Arrays;
5758
import java.util.Collection;
@@ -643,8 +644,13 @@ public File getInclusionListFile(Logger logger) throws PipelineJobException
643644
{
644645
try
645646
{
646-
exe = Files.readSymbolicLink(exe.toPath()).resolve(exe.getParentFile().toPath()).toFile();
647-
logger.debug("cellranger symlink target: " + exe.getPath());
647+
Path exePath = Files.readSymbolicLink(exe.toPath());
648+
logger.debug("cellranger symlink target: " + exePath.toString());
649+
logger.debug("cellranger symlink absolute path: " + exePath.toAbsolutePath());
650+
logger.debug("cellranger symlink realpath path: " + exePath.toRealPath());
651+
652+
exe = exePath.toFile();
653+
logger.debug("cellranger resolved symlink target: " + exe.getPath());
648654
}
649655
catch (IOException e)
650656
{

0 commit comments

Comments
 (0)