0
|
1 #!/bin/bash
|
|
2
|
|
3 shopt -s extglob;
|
|
4 #turns on extended globbing features ('!' can then be used to exclude file names)
|
|
5
|
|
6 #entering SCRATCHDIR used for computation on Metacentrum nodes
|
|
7 cd $SCRATCHDIR;
|
|
8
|
|
9 #copying input files
|
|
10 cp -r /storage/brno2/home/nicki/linkyx/* .
|
|
11
|
|
12 #logfile
|
|
13 echo "Copying of the input data finished." `date` >/storage/brno2/home/nicki/linkyx/log;
|
|
14
|
|
15 #adding needed modules
|
|
16 module add trinity;
|
|
17 module add bwa-0.6.2;
|
|
18 module add bowtie-0.12.8;
|
|
19 module add ics.muni.cz jdk-1.6.0; #initialization of the specific JAVA version
|
|
20 module add samtools-0.1.18alt #samtools recompiled with -fPIC parameter
|
|
21 module add picard-1.80;
|
|
22 module add fastx-0.0.13;
|
|
23
|
|
24 #export of perl modules
|
|
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:;
|
|
26
|
|
27 #execution of the linkYX pipeline
|
|
28 ./runLinkYX.sh michalovova.monika@gmail.com misa
|
|
29
|
|
30 echo "Copying of the output data started." `date` >>/storage/brno2/home/nicki/linkyx/log;
|
|
31
|
|
32 #copying output files
|
|
33 cp -ar * /storage/brno2/home/nicki/linkyx_out;
|
|
34 #cleaning
|
|
35 rm -rf $SCRATCHDIR
|
|
36 trap "rm -rf $SCRATCHDIR" SIGTERM
|
|
37
|