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 --- Makefile.am | 2 +- scripts/turbo-index | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 scripts/turbo-index diff --git a/Makefile.am b/Makefile.am index bc1058fc..a6acd357 100644 --- a/Makefile.am +++ b/Makefile.am @@ -180,7 +180,7 @@ script_DATA = scripts/alternate-stream scripts/cell-please \ scripts/find-pairs scripts/plot-cc-and-scale.R \ scripts/ave-resolution scripts/crystal-frame-number \ scripts/plot-radius-resolution scripts/plot-predict-refine \ - scripts/detector-shift + scripts/detector-shift scripts/turbo-index EXTRA_DIST += $(script_DATA) 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