annotate gbsx_demultiplexer.sh @ 4:058ec87cebd6 draft

Uploaded tool_dependencies.xml
author koen
date Wed, 13 Jan 2016 10:46:34 -0500
parents b0d5949b88dd
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
1 #!/usr/bin/env bash
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
2
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
3 #export PATH=$PATH:$(dirname $0)
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
4 #BASEDIR=$(dirname $0)
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
5
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
6
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
7 read1=$1
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
8 read2=$2
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
9 infofile=$3
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
10 barcodeMismatch=$4
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
11 enzymeMismatch=$5
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
12 rad_gbs_select=$6
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
13 demultiplex_stats=$7
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
14
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
15 extra=""
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
16 if [ "$read2" != "0" ];
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
17 then
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
18 extra="-f2 $read2";
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
19 fi
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
20 mkdir gbsx_demultiplex;
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
21
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
22 java -jar $GBSX_PATH/GBSX.jar --Demultiplexer -o gbsx_demultiplex -f1 $read1 $extra -i $infofile -mb $barcodeMismatch -me $enzymeMismatch -rad $rad_gbs_select
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
23
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
24 cat gbsx_demultiplex/gbsDemultiplex.stats > $demultiplex_stats
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
25 rm gbsx_demultiplex/*.log
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
26 rm gbsx_demultiplex/*.stats
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
27 rm gbsx_demultiplex/undetermined*
b0d5949b88dd Uploaded gbsx_demultiplexer.sh
koen
parents:
diff changeset
28