From 570299b343f0d1ea83c42645db81a335e1322042 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 21 Jul 2015 10:21:19 +0200 Subject: Add scripts/turbo-index --- scripts/turbo-index | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 scripts/turbo-index (limited to 'scripts') diff --git a/scripts/turbo-index b/scripts/turbo-index new file mode 100644 index 00000000..7554adcb --- /dev/null +++ b/scripts/turbo-index @@ -0,0 +1,25 @@ +#!/bin/sh + +RUN=$1 +NOSAMPLE=`echo $RUN | sed -e 's/\-.*$//'` + +GEOM= + +find /$RUN -name '*.cxi' > files-${RUN}.lst +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" + + 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 + + -- cgit v1.2.3