Dec 13, 2016
Enabled the workflow to be executed on Jetstream
|
|
|
13 |
|
|
14 |
TOPDIR=`pwd` |
|
15 |
|
|
16 |
export RUN_ID=osg-gem-`date +'%s'` |
|
17 |
|
|
18 |
export RUN_DIR=/local-scratch/$USER/workflows/$RUN_ID |
|
19 |
mkdir -p $RUN_DIR/scratch/$RUN_ID/level-2 |
|
20 |
# make the data availabile over http |
|
21 |
mkdir -p /stash2/user/$USER/public/$RUN_ID/data |
|
22 |
ln -s /stash2/user/$USER/public/$RUN_ID/data $RUN_DIR/data |
|
23 |
|
|
24 |
# generate the site catalog |
|
25 |
SC=$RUN_DIR/sites.xml |
|
26 |
envsubst <sites.xml.template >$SC |
|
27 |
|
|
28 |
# generate the dax |
|
29 |
export PYTHONPATH=`pegasus-config --python` |
|
30 |
./tools/dax-level-1 $RUN_ID $RUN_DIR $RUN_DIR/data |
|
31 |
|
|
32 |
echo |
|
33 |
echo "An 'Output's directory will be created within the base of the workflow directory." |
|
34 |
echo "This directory, $RUN_DIR/outputs" |
|
35 |
echo "will have a 'merged_GEM.tab' file, an expression vector for each individual file," |
Dec 13, 2016
Enabled the workflow to be executed on Jetstream
|
|
|
59 |
mkdir -p $RUN_DIR/scratch/$RUN_ID/level-2 |
|
60 |
mkdir -p $RUN_DIR/data |
|
61 |
|
|
62 |
# generate the site catalog |
|
63 |
SC=$RUN_DIR/sites.xml |
|
64 |
envsubst <sites.xml.template >$SC |
|
65 |
|
|
66 |
# generate the dax |
|
67 |
export PYTHONPATH=`pegasus-config --python` |
|
68 |
./tools/dax-level-1 $RUN_ID $RUN_DIR $RUN_DIR/data |
|
69 |
|
|
70 |
echo |
|
71 |
echo "An 'Output's directory will be created within the base of the workflow directory." |
|
72 |
echo "This directory, $RUN_DIR/outputs" |
|
73 |
echo "will have a 'merged_GEM.tab' file, an expression vector for each individual file," |
|
74 |
echo "and all standard output files from trimmomatic/hisat2 jobs." |
|
75 |
|
|
76 |
# plan and submit the workflow |
|
77 |
echo |
|
78 |
pegasus-plan \ |
|
79 |
-Dpegasus.catalog.site.file=$SC \ |
|
80 |
--conf pegasus.conf \ |
|
81 |
--relative-dir $RUN_ID \ |
|
82 |
--sites jetstream-condorpool \ |
|
83 |
--staging-site jetstream-staging \ |
|
84 |
--output-site local \ |
|
85 |
--dir $RUN_DIR/workflow \ |
|
86 |
--dax dax.xml \ |
|
87 |
--submit |