@@ -394,7 +394,7 @@ while IFS= read -r line; do
394394done < $REQS
395395
396396# Check tool installation
397- declare -a requiredCommands=(" perl" " awk" " grep" " sed" " bedtools" " bowtie2" " macs3" " preseq" " samblaster" " samtools" " skewer" " bedToBigBed" " bigWigCat " " wigToBigWig " " Rscript " )
397+ declare -a requiredCommands=(" perl" " awk" " grep" " sed" " bedtools" " bowtie2" " macs3" " preseq" " samblaster" " samtools" " skewer" " bedToBigBed" " Rscript " " gtars " )
398398
399399for cmd in ${requiredCommands[@]} ; do
400400 if ! is_executable $cmd ; then
740740 done < $REQS
741741
742742 # Check tool installation
743- declare -a requiredCommands=(" perl" " awk" " grep" " sed" " bedtools" " bowtie2" " macs3" " preseq" " samblaster" " samtools" " skewer" " bedToBigBed" " bigWigCat " " wigToBigWig " " Rscript " )
743+ declare -a requiredCommands=(" perl" " awk" " grep" " sed" " bedtools" " bowtie2" " macs3" " preseq" " samblaster" " samtools" " skewer" " bedToBigBed" " Rscript " " gtars " )
744744
745745 for cmd in ${requiredCommands[@]} ; do
746746 if ! is_executable $cmd ; then
@@ -792,81 +792,52 @@ echo -e "-----------------------------------------------------------"
792792echo -e " Checking bulker installation... "
793793BULKER_INSTALL=0
794794
795- if ! is_executable " docker" ; then
796- DOCKER=1
795+
796+ if ! is_executable " bulker" ; then
797+ echo $( warn " WARNING: To use bulker, pip install bulker and checkinstall again." )
798+ printf " \n"
799+ BULKER_INSTALL=1
797800else
798- DOCKER=0
801+ BULKER_INSTALL=0
802+ echo -e $( success " SUCCESS: bulker" )
799803fi
800804
801- if ! is_executable " singularity" ; then
802- SINGULARITY=1
805+ CWD=$( pwd)
806+
807+ if [ -f " sample_pipeline_interface.yaml" ]; then
808+ IFACE=" sample_pipeline_interface.yaml"
809+ CRATE=$( cat $IFACE | grep ' bulker_crate' | tr " " " \n" | tail -n 1)
803810else
804- SINGULARITY=0
811+ IFACE=$( curl https://raw.githubusercontent.com/databio/pepatac/master/sample_pipeline_interface.yaml)
812+ CRATE=$( echo $IFACE | tr " " " \n" | grep -A1 ' bulker_crate' | tail -n 1)
805813fi
806814
807- if [ " $DOCKER " -eq 0 ]; then
808- CMD_CHECK=$( docker --help)
809- if [ $? -eq 0 ]; then
810- echo -e $( success " SUCCESS: docker." )
811- else
812- echo -e $( warn " WARNING: Docker is a recognized command, but does not appear to be active. Please ensure docker is running and checkinstall again." )
813- DOCKER=1
814- fi
815+ yes n | bulker load $CRATE
816+ if [ $? -eq 0 ]; then
817+ echo $( warn " WARNING: Could not bulker load ${CRATE} . Check out https://bulker.databio.org/en/latest/install/." )
818+ printf " \n"
819+ BULKER_INSTALL=1
815820fi
816821
817- if [ " $SINGULARITY " -eq 0 ]; then
818- echo -e $( success " SUCCESS: singularity." )
822+ if [ -f " $CWD /pipelines/pepatac.py" ]; then
823+ PIPELINE=$( cat " $CWD /pipelines/pepatac.py" )
824+ else
825+ PIPELINE=$( curl https://raw.githubusercontent.com/databio/pepatac/master/pipelines/pepatac.py)
819826fi
820827
821- if [ " $DOCKER " -eq 1 ] && [ " $SINGULARITY " -eq 1 ]; then
822- echo -e $( fail " ERROR: bulker" )
823- BULKER_INSTALL=1
828+ CMD_CHECK=$( bulker run ${CRATE} $PIPELINE --help)
829+ EXIT_CODE=$( echo $? )
830+ isActivatable=$( echo " ${EXIT_CODE} " | awk ' { print $1+0; exit }' )
831+ if [ " $isActivatable " -eq 0 ]; then
832+ BULKER_INSTALL=0
833+ echo -e $( success " SUCCESS: bulker run ${CRATE} " )
824834else
825- if ! is_executable " bulker" ; then
826- echo $( warn " WARNING: To use bulker, pip install bulker and checkinstall again." )
827- printf " \n"
828- BULKER_INSTALL=1
829- else
830- BULKER_INSTALL=0
831- echo -e $( success " SUCCESS: bulker" )
832- fi
833-
834- CWD=$( pwd)
835-
836- if [ -f " sample_pipeline_interface.yaml" ]; then
837- IFACE=" sample_pipeline_interface.yaml"
838- CRATE=$( cat $IFACE | grep ' bulker_crate' | tr " " " \n" | tail -n 1)
839- else
840- IFACE=$( curl https://raw.githubusercontent.com/databio/pepatac/master/sample_pipeline_interface.yaml)
841- CRATE=$( echo $IFACE | tr " " " \n" | grep -A1 ' bulker_crate' | tail -n 1)
842- fi
843-
844- yes n | bulker load $CRATE
845- if [ $? -eq 0 ]; then
846- echo $( warn " WARNING: Could not bulker load ${CRATE} . Check out https://bulker.databio.org/en/latest/install/." )
847- printf " \n"
848- BULKER_INSTALL=1
849- fi
850-
851- if [ -f " $CWD /pipelines/pepatac.py" ]; then
852- PIPELINE=$( cat " $CWD /pipelines/pepatac.py" )
853- else
854- PIPELINE=$( curl https://raw.githubusercontent.com/databio/pepatac/master/pipelines/pepatac.py)
855- fi
856-
857- CMD_CHECK=$( bulker run ${CRATE} $PIPELINE --help)
858- EXIT_CODE=$( echo $? )
859- isActivatable=$( echo " ${EXIT_CODE} " | awk ' { print $1+0; exit }' )
860- if [ " $isActivatable " -eq 0 ]; then
861- BULKER_INSTALL=0
862- echo -e $( success " SUCCESS: bulker run ${CRATE} " )
863- else
864- echo $( warn " WARNING: Could not activate the bulker crate, ${CRATE} . Check out https://bulker.databio.org/en/latest/install/." )
865- printf " \n"
866- BULKER_INSTALL=1
867- fi
835+ echo $( warn " WARNING: Could not activate the bulker crate, ${CRATE} . Check out https://bulker.databio.org/en/latest/install/." )
836+ printf " \n"
837+ BULKER_INSTALL=1
868838fi
869839
840+
870841# ###############################################################################
871842echo -e " -----------------------------------------------------------"
872843echo -e " PEPATAC checkinstall results "
@@ -883,18 +854,6 @@ else
883854 echo -e $( fail " ERROR: PEPATAC cannot be run via conda." )
884855fi
885856
886- if [ " $DOCKER " -eq 0 ]; then
887- echo -e $( success " SUCCESS: PEPATAC can be run using docker!" )
888- else
889- echo -e $( fail " ERROR: PEPATAC cannot be run using docker." )
890- fi
891-
892- if [ " $SINGULARITY " -eq 0 ]; then
893- echo -e $( success " SUCCESS: PEPATAC can be run using singularity!" )
894- else
895- echo -e $( fail " ERROR: PEPATAC cannot be run using singularity." )
896- fi
897-
898857if [ " $BULKER_INSTALL " -eq 0 ]; then
899858 echo -e $( success " SUCCESS: PEPATAC can be run using bulker!" )
900859else
0 commit comments