File tree Expand file tree Collapse file tree 3 files changed +71
-18
lines changed
SequenceAnalysis/pipeline_code
singlecell/src/org/labkey/singlecell/run Expand file tree Collapse file tree 3 files changed +71
-18
lines changed Original file line number Diff line number Diff line change @@ -350,3 +350,32 @@ then
350350else
351351 echo " Already installed"
352352fi
353+
354+
355+ echo " "
356+ echo " "
357+ echo " %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"
358+ echo " Install hifiasm"
359+ echo " "
360+ cd $LKSRC_DIR
361+ if [[ ! -e ${LKTOOLS_DIR} /primer3_core || ! -z $FORCE_REINSTALL ]];
362+ then
363+ echo " Cleaning up previous installs"
364+ rm -Rf $LKTOOLS_DIR /hifiasm*
365+ rm -Rf $LKTOOLS_DIR /yak*
366+ rm -Rf hifiasm*
367+ rm -Rf yak*
368+
369+ git clone https://github.com/chhylp123/hifiasm
370+ cd hifiasm
371+ make
372+ install hifiasm $LKTOOLS_DIR /
373+ cd ../
374+
375+ git clone https://github.com/lh3/yak
376+ cd yak
377+ make
378+ install yak $LKTOOLS_DIR /
379+ else
380+ echo " Already installed"
381+ fi
Original file line number Diff line number Diff line change 5252import java .io .File ;
5353import java .io .IOException ;
5454import java .nio .file .Files ;
55+ import java .nio .file .Path ;
5556import java .util .ArrayList ;
5657import java .util .Arrays ;
5758import java .util .Collection ;
@@ -637,12 +638,28 @@ public enum Chemistry
637638
638639 public File getInclusionListFile (Logger logger ) throws PipelineJobException
639640 {
640- File exe = new CellRangerWrapper (logger ).getExe ();
641+ File exe = new CellRangerWrapper (logger ).getExe ().getAbsoluteFile ();
642+ logger .debug ("cellranger executable: " + exe .getPath ());
641643 if (Files .isSymbolicLink (exe .toPath ()))
642644 {
643645 try
644646 {
645- exe = Files .readSymbolicLink (exe .toPath ()).toFile ();
647+ Path exePath = Files .readSymbolicLink (exe .toPath ());
648+ logger .debug ("cellranger symlink target: " + exePath );
649+ if (!exePath .isAbsolute ())
650+ {
651+ File parent = exe .getParentFile ();
652+ if (parent .getPath ().endsWith ("bin" ))
653+ {
654+ parent = parent .getParentFile ();
655+ }
656+
657+ exePath = parent .toPath ().resolve (exePath );
658+ logger .debug ("resolved symlink target: " + exePath );
659+ }
660+
661+ exe = exePath .toFile ();
662+ logger .debug ("cellranger resolved symlink target: " + exe .getPath ());
646663 }
647664 catch (IOException e )
648665 {
You can’t perform that action at this time.
0 commit comments