Commit 94ec6919 authored by Aiden Lab's avatar Aiden Lab
Browse files

fixed some small issues that might have resulted in script reporting non existent problem

parent 284cb332
Loading
Loading
Loading
Loading
+3 −3
Changes for CPU/common/juicer_postprocessing.sh: 3 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -75,7 +75,7 @@ fi
echo -e "\nHiCCUPS:\n"
if hash nvcc 2>/dev/null 
then 
    ${juicer_tools_path} hiccups ${hic_file_path} ${hic_file_path%.*}"_loops.txt"
    ${juicer_tools_path} hiccups ${hic_file_path} ${hic_file_path%.*}"_loops"
    if [ $? -ne 0 ]; then
	echo "***! Problem while running HiCCUPS";
	exit 1
@@ -84,10 +84,10 @@ else
    echo "GPUs are not installed so HiCCUPs cannot be run";
fi

if [ -f ${hic_file_path%.*}"_loops.txt" ]
if [ -e ${hic_file_path%.*}"_loops.txt" ]
then
    echo -e "\nAPA:\n"
    ${juicer_tools_path} apa ${hic_file_path} ${hic_file_path%.*}"_loops.txt" "apa_results"
    ${juicer_tools_path} apa ${hic_file_path} ${hic_file_path%.*}"_loops/merged_loops.bedpe" "apa_results"
    ## Check that bed folder exists    
    if [ ! -e "${bed_file_dir}" ]; then
	echo "***! Can't find folder ${bed_file_dir}";
+1 −0
Changes for CPU/juicer.sh: 1 added line, 0 removed lines.
Original line number Diff line number Diff line
@@ -562,4 +562,5 @@ then
fi
#CHECK THAT PIPELINE WAS SUCCESSFUL
export early=$earlyexit
export splitdir=$splitdir
source ${juiceDir}/scripts/common/check.sh