diff options
author | Thomas White <taw@physics.org> | 2017-07-06 17:22:11 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-07-06 17:24:59 +0200 |
commit | 5292f57d4434c7267e8d945871513d742ff42427 (patch) | |
tree | d460aa5cef5a501516876850ef243cfc27313d5a /scripts/turbo-index-lsf | |
parent | 48d4a6b8e82cce81222ec58fdfb488ed79ce0bcf (diff) | |
parent | dc3395900fc3ce0d3961757628ff83ad6456be19 (diff) |
Merge branch 'master' into taketwo
Diffstat (limited to 'scripts/turbo-index-lsf')
-rw-r--r-- | scripts/turbo-index-lsf | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/scripts/turbo-index-lsf b/scripts/turbo-index-lsf new file mode 100644 index 00000000..00e4ec15 --- /dev/null +++ b/scripts/turbo-index-lsf @@ -0,0 +1,26 @@ +#!/bin/sh + +RUN=$1 +NOSAMPLE=`echo $RUN | sed -e 's/\-.*$//'` + +GEOM=my.geom # Name of your geometry file + +find /path/to/CXI/files/$RUN -name '*.cxi' > files-${RUN}.lst # Set location of files +list_events -i files-${RUN}.lst -g $GEOM -o events-${RUN}.lst +wc -l events-${RUN}.lst +rm -f split-events-${RUN}.lst files-${RUN}.lst +split -d -l 500 events-${RUN}.lst split-events-${RUN}.lst +rm -f events-${RUN}.lst + +for FILE in split-events-${RUN}.lst*; do + + STREAM=`echo $FILE | sed -e "s/split-events-${RUN}.lst/${RUN}.stream/"` + NAME=`echo $FILE | sed -e "s/split-events-${RUN}.lst/${NOSAMPLE}-/"` + echo "$NAME: $FILE ---> $STREAM" + + # Set indexing parameters here + bsub -q psanaq -o $NAME.log -J $NAME -n 12 -R "span[hosts=1]" \ + indexamajig \ + -i $FILE -o $STREAM -j 32 -g $GEOM --peaks=cxi + +done |