Skip to content
Snippets Groups Projects
Commit c26ca54f authored by Adam Caprez's avatar Adam Caprez
Browse files

Add cd'ing to correct directory

The BLAHP submit wrapper creates a temp directory and cd's there
before running the executable. This breaks Pegasus jobs for a
sharedfs site as it expects to be in the shared-scratch dir
via the `remote_iwd` Condor ClassAd.  This dir is available via
the PEGASUS_SCRATCH_DIR env variable in the job, so cd there as a
workaround.
parent 65ff36dd
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/python #!/bin/env python
import chipathlon.utils import chipathlon.utils
import argparse import argparse
......
#!/bin/bash #!/bin/bash
cd $PEGASUS_SCRATCH_DIR
/bin/sort -k 8gr,8gr "$1" | awk 'BEGIN{OFS="\t"}{$r="PEAK_"NR; print $0;}' > "$2" /bin/sort -k 8gr,8gr "$1" | awk 'BEGIN{OFS="\t"}{$r="PEAK_"NR; print $0;}' > "$2"
#!/bin/bash #!/bin/bash
cd $PEGASUS_SCRATCH_DIR
/bin/zcat "$1" | awk 'BEGIN{OFS="\t"}{print $1,int($2),int($3),$4,$5,$6,$7,$8,$9,$10;}' > "$2" /bin/zcat "$1" | awk 'BEGIN{OFS="\t"}{print $1,int($2),int($3),$4,$5,$6,$7,$8,$9,$10;}' > "$2"
#!/bin/bash #!/bin/bash
cd $PEGASUS_SCRATCH_DIR
. /util/opt/lmod/lmod/init/profile . /util/opt/lmod/lmod/init/profile
module load bedtools module load bedtools
bedtools "$@" bedtools "$@"
#!/bin/bash #!/bin/bash
cd $PEGASUS_SCRATCH_DIR
. /util/opt/lmod/lmod/init/profile . /util/opt/lmod/lmod/init/profile
module load bowtie module load bowtie
bowtie2 "$@" bowtie2 "$@"
#!/bin/bash #!/bin/bash
cd $PEGASUS_SCRATCH_DIR
. /util/opt/lmod/lmod/init/profile . /util/opt/lmod/lmod/init/profile
module load bwa module load bwa
bwa "$@" bwa "$@"
#!/bin/bash #!/bin/bash
cd $PEGASUS_SCRATCH_DIR
. /util/opt/lmod/lmod/init/profile . /util/opt/lmod/lmod/init/profile
module load python/2.7 macs2 module load python/2.7 macs2
macs2 "$@" macs2 "$@"
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
set -eu -o pipefail set -eu -o pipefail
set -o pipefail set -o pipefail
cd $PEGASUS_SCRATCH_DIR
. /util/opt/lmod/lmod/init/profile . /util/opt/lmod/lmod/init/profile
module load picard module load picard
......
#!/bin/bash #!/bin/bash
cd $PEGASUS_SCRATCH_DIR
. /util/opt/lmod/lmod/init/profile . /util/opt/lmod/lmod/init/profile
module load R spp module load R spp
Rscript ${SPP_NODUPS} "$@" Rscript ${SPP_NODUPS} "$@"
#!/bin/bash #!/bin/bash
cd $PEGASUS_SCRATCH_DIR
. /util/opt/lmod/lmod/init/profile . /util/opt/lmod/lmod/init/profile
module load samtools module load samtools
samtools "$@" samtools "$@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment