Skip to content
Snippets Groups Projects
Commit 8b7f336e authored by tjc's avatar tjc
Browse files

change to be able to run on deskpro

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@1913 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent b4e42591
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# to customise this script see the function called run_one_prog below # to customise this script see the function called run_one_prog below
RCS_HEADER="$Header: //tmp/pathsoft/artemis/etc/run_blastp,v 1.1 2004-06-09 10:02:59 tjc Exp $" RCS_HEADER="$Header: //tmp/pathsoft/artemis/etc/run_blastp,v 1.2 2004-10-05 12:40:05 tjc Exp $"
PROG=`echo $RCS_HEADER | sed 's/.*run_\(.*\),v.*/\1/'` PROG=`echo $RCS_HEADER | sed 's/.*run_\(.*\),v.*/\1/'`
...@@ -49,11 +49,28 @@ run_one_prog () { ...@@ -49,11 +49,28 @@ run_one_prog () {
EXTRA_ARGS= EXTRA_ARGS=
HOSTNAME=`hostname`
REMOTE=N
case $HOSTNAME in
deskpro*)
REMOTE=Y ;;
*)
esac
if [ $REMOTE = "Y" ]; then
WDIR=`pwd`
export WDIR
rsh babel "cd $WDIR; lsrun -R 'select[blast && mem > 500] rusage[r1m=1:mem=500]' -v \
blastwrap.pl $EXEC -d $DATABASE -i $INPUT_FILE -p blastp \
$EXTRA_ARGS >! $OUTPUT_FILE"
else
# add/change the flags to suit your site: # add/change the flags to suit your site:
lsrun -R 'select[blast && mem > 500] rusage[r1m=1:mem=500]' -v \ lsrun -R 'select[blast && mem > 500] rusage[r1m=1:mem=500]' -v \
blastwrap.pl $EXEC -d $DATABASE -i $INPUT_FILE -p blastp \ blastwrap.pl $EXEC -d $DATABASE -i $INPUT_FILE -p blastp \
$EXTRA_ARGS 2>&1 > $OUTPUT_FILE | $EXTRA_ARGS 2>&1 > $OUTPUT_FILE |
tee ${PROG}_errors.new 1>&2 tee ${PROG}_errors.new 1>&2
fi
#### end of changes #### end of changes
...@@ -78,7 +95,7 @@ if [ x$ONEFILE = x ] ...@@ -78,7 +95,7 @@ if [ x$ONEFILE = x ]
then then
for i in `cat $1` for i in `cat $1`
do do
run_one_prog $i $i.out $EXPANDED_DATABASE run_one_prog $i $i.out $EXPANDED_DATABASE
done done
else else
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
# to customise this script see the function called run_one_prog below # to customise this script see the function called run_one_prog below
RCS_HEADER="$Header: //tmp/pathsoft/artemis/etc/run_fasta,v 1.8 2004-07-21 15:16:45 tjc Exp $" RCS_HEADER="$Header: //tmp/pathsoft/artemis/etc/run_fasta,v 1.9 2004-10-05 12:39:52 tjc Exp $"
PROG=`echo $RCS_HEADER | sed 's/.*run_\(.*\),v.*/\1/'` PROG=`echo $RCS_HEADER | sed 's/.*run_\(.*\),v.*/\1/'`
...@@ -145,11 +145,11 @@ while(my $inFile = <LIST_FILE>) ...@@ -145,11 +145,11 @@ while(my $inFile = <LIST_FILE>)
$inFile = $inFile_tmp; $inFile = $inFile_tmp;
} }
} }
print BSUB "$EXEC -B -S -q -b 100 -H $inFile $database ktup 2 > $inFile\.out\n"; print BSUB "$EXEC -B -S -q -b 100 -H $inFile $database ktup 2 > $inFile\.out\n";
print BSUB "gzip -9 $inFile\.out\n"; print BSUB "gzip -9 $inFile\.out\n";
} }
close BSUB or die "Could not submit job : $!"; close BSUB or die "--Could not submit job : $!";
close LIST_FILE; close LIST_FILE;
' '
...@@ -158,9 +158,25 @@ close LIST_FILE; ...@@ -158,9 +158,25 @@ close LIST_FILE;
chmod a+x $PROG.kill chmod a+x $PROG.kill
HOSTNAME=`hostname`
REMOTE=N
case $HOSTNAME in
deskpro*)
REMOTE=Y ;;
*)
esac
if [ x$ONEFILE = x ] if [ x$ONEFILE = x ]
then then
perl -w -e "$PERL_PROG" "$1" "$EXPANDED_DATABASE" "$PWD" if [ $REMOTE = "Y" ]; then
WDIR=`pwd`
export WDIR
CMD=`echo $PERL_PROG`
rsh babel "cd $WDIR; perl -w -e '$CMD' \"$1\" \"$EXPANDED_DATABASE\" \"$PWD\""
else
perl -w -e "$PERL_PROG" "$1" "$EXPANDED_DATABASE" "$PWD"
fi
else else
run_one_prog $1 $2 $EXPANDED_DATABASE run_one_prog $1 $2 $EXPANDED_DATABASE
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment