annotate run_snp_analysis.sh @ 0:05c27700e5ca

initial commit
author biomonika <biomonika@psu.edu>
date Thu, 04 Sep 2014 18:24:19 -0400
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
1 #!/bin/bash
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
2
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
3 shopt -s extglob;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
4 #turns on extended globbing features ('!' can then be used to exclude file names)
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
5
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
6 #entering SCRATCHDIR used for computation on Metacentrum nodes
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
7 cd $SCRATCHDIR;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
8
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
9 #copying input files
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
10 cp -r /storage/brno2/home/nicki/linkyx/* .
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
11
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
12 #logfile
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
13 echo "Copying of the input data finished." `date` >/storage/brno2/home/nicki/linkyx/log;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
14
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
15 #adding needed modules
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
16 module add trinity;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
17 module add bwa-0.6.2;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
18 module add bowtie-0.12.8;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
19 module add ics.muni.cz jdk-1.6.0; #initialization of the specific JAVA version
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
20 module add samtools-0.1.18alt #samtools recompiled with -fPIC parameter
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
21 module add picard-1.80;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
22 module add fastx-0.0.13;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
23
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
24 #export of perl modules
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
25 export PERL5LIB=/storage/brno2/home/nicki/modules/File-Slurp-9999.19/lib:/storage/brno2/home/nicki/modules/Bio-SamTools-1.37/lib:/storage/brno2/home/nicki/modules/BioPerl-1.6.901:/storage/brno2/home/nicki/modules/Data-Dumper-2.139:/storage/brno2/home/nicki/modules/libwww-perl-6.04/lib:/storage/brno2/home/nicki/modules/URI-1.60:/storage/brno2/home/nicki/modules/UUID-Generator-PurePerl-0.04_02/lib:/storage/brno2/home/nicki/modules/UUID-Object-0.81:/storage/brno2/home/nicki/modules/UUID-Generator-PurePerl-0.04_02/lib/UUID/:Generator:/storage/brno2/home/nicki/modules/UUID-Object-0.81/lib:/home/nicki/lib:/storage/brno2/home/nicki/modules/bio_samtools_bin/local/lib/perl/5.10.0:/home/nicki/lib/x86_64-linux-gnu-thread-multi:/home/nicki/lib/man:/storage/brno2/home/nicki/modules/Data-GUID-0.046/lib:/home/nicki/perl/lib/perl5:/home/nicki/perl/lib/perl:/home/nicki/perl/share/perl:/home/nicki/perl/share/perl5:/home/nicki/lib/lib/perl5:/home/nicki/lib/lib/perl:/home/nicki/lib/share/perl:/home/nicki/lib/share/perl5:/home/nicki/lib/perl5/:/home/nicki/lib/perl5/site_perl:;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
26
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
27 #execution of the linkYX pipeline
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
28 ./runLinkYX.sh michalovova.monika@gmail.com misa
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
29
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
30 echo "Copying of the output data started." `date` >>/storage/brno2/home/nicki/linkyx/log;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
31
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
32 #copying output files
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
33 cp -ar * /storage/brno2/home/nicki/linkyx_out;
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
34 #cleaning
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
35 rm -rf $SCRATCHDIR
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
36 trap "rm -rf $SCRATCHDIR" SIGTERM
05c27700e5ca initial commit
biomonika <biomonika@psu.edu>
parents:
diff changeset
37