Skip to content

Commit

Permalink
chore: delete deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly-sovacool committed Oct 16, 2024
1 parent 9715cb0 commit c82d42a
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions charlie
Original file line number Diff line number Diff line change
Expand Up @@ -355,21 +355,6 @@ function unlock() {
# SET SINGULARITY BINDS ... bind required singularity folders appropriately
##########################################################################################

function set_singularity_binds_bash(){
# this functions tries find what folders to bind
# TODO parse config file with pyyaml to determine singularity bind paths
echo "$PIPELINE_HOME" > ${WORKDIR}/tmp1
echo "$WORKDIR" >> ${WORKDIR}/tmp1
grep -o '\/.*' <(cat ${WORKDIR}/config.yaml ${WORKDIR}/samples.tsv)|dos2unix|tr '\t' '\n'|grep -v ' \|\/\/'|sort|uniq >> ${WORKDIR}/tmp1
grep gpfs ${WORKDIR}/tmp1|awk -F'/' -v OFS='/' '{print $1,$2,$3,$4,$5}'| grep "[a-zA-Z0-9]" |sort|uniq > ${WORKDIR}/tmp2
grep -v gpfs ${WORKDIR}/tmp1|awk -F'/' -v OFS='/' '{print $1,$2,$3}'| grep "[a-zA-Z0-9]"|sort|uniq > ${WORKDIR}/tmp3
while read a;do readlink -f $a;done < ${WORKDIR}/tmp3 | grep "[a-zA-Z0-9]"> ${WORKDIR}/tmp4
binds=$(cat ${WORKDIR}/tmp2 ${WORKDIR}/tmp3 ${WORKDIR}/tmp4|sort|uniq |tr '\n' ',')
rm -f ${WORKDIR}/tmp?
binds=$(echo $binds|awk '{print substr($1,1,length($1)-1)}' | sed -s 's/"//g' | sed -s "s/'//g")
SINGULARITY_BINDS="-B $EXTRA_SINGULARITY_BINDS,$binds"
}

function set_singularity_binds() {
binds=$( $PIPELINE_HOME/workflow/scripts/set_singularity_bind_paths.py ${WORKDIR}/config.yaml ${WORKDIR}/samples.tsv)
SINGULARITY_BINDS="-B $EXTRA_SINGULARITY_BINDS,$binds"
Expand Down Expand Up @@ -646,7 +631,7 @@ function main(){
;;
esac
done
#WORKDIR=$(readlink "$WORKDIR")

echo "Working Dir: $WORKDIR"

if [[ -z "$SING_CACHE_DIR" ]]; then
Expand Down

0 comments on commit c82d42a

Please sign in to comment.