Skip to content

Commit

Permalink
check for exact matches in configs
Browse files Browse the repository at this point in the history
  • Loading branch information
slsevilla committed Oct 16, 2023
1 parent 10967f4 commit f79b172
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion carlisle
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,9 @@ function controlcheck(){
check2=`awk '{print $2}' ${WORKDIR}/config/contrasts.tsv`

for sample_id in ${control_list[@]}; do
if [[ $check1 =~ $sample_id || $check2 =~ $sample_id ]]; then
if [[ $check1 == $sample_id || $check2 == $sample_id ]]; then
echo "Controls ($sample_id) cannot be listed in contrast.csv - update and re-run"
echo "$check1 okkk $check2"
exit 0
fi
done
Expand Down

0 comments on commit f79b172

Please sign in to comment.