Skip to content

Commit 82bcdde

Browse files
author
nservant
committed
[MODIF] Check if ice is in the path
1 parent 63ead9b commit 82bcdde

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

bin/HiC-Pro

+9-8
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,15 @@ if [[ -z $INPUT || -z $OUTPUT || -z $CONF ]]; then
127127
fi
128128

129129

130+
## check if ice is in the PATH
131+
if [[ $MAKE_OPTS == "" || $MAKE_OPTS =~ "ice_norm" ]]; then
132+
which ice > /dev/null
133+
if [ $? != "0" ]; then
134+
echo -e "Error: The 'ice' command is not in your path. Please check where the 'iced' python package has been installed and update your PATH !"
135+
exit 1;
136+
fi
137+
fi
138+
130139
#####################
131140
## Check Config file
132141
#####################
@@ -181,14 +190,6 @@ if [[ ! -z $ALLELE_SPECIFIC_SNP && ! -r $ALLELE_SPECIFIC_SNP ]]; then
181190
die "ALLELE_SPECIFIC_SNP $ALLELE_SPECIFIC_SNP not found. Exit"
182191
fi
183192

184-
## check if ice is in the PATH
185-
if [[ $MAKE_OPTS =~ "ice_norm" ]]; then
186-
which ice > /dev/null;
187-
if [ $? != "0" ]; then
188-
echo -e "The 'ice' command is not in your path. Please check where the 'iced' python package has been installed and update your PATH !"
189-
exit 1;
190-
fi
191-
fi
192193
#####################
193194
## Check step option
194195
#####################

0 commit comments

Comments
 (0)