annotate gbsx_barcodeGenerator.sh @ 23:3b325560887b draft default tip

new version of gbsx: v1.2 with barcodeGenerator, demultiplex and digest
author koen
date Tue, 26 Jan 2016 07:56:34 -0500
parents 84737a8fddb0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
1 #!/usr/bin/env bash
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
2
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
3 #export PATH=$PATH:$(dirname $0)
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
4 #BASEDIR=$(dirname $0)
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
5
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
6 barcode=$1
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
7 enzyme=$2
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
8 barcode_list=$3
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
9 barcode_summary=$4
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
10
19
84737a8fddb0 Uploaded
koen
parents: 16
diff changeset
11 java -jar $GBSX_PATH/GBSX.jar --BarcodeGenerator -b $barcode -e $enzyme
0
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
12
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
13 awk '{print "sample" NR "\t" $1 "\t" var;}' var="$enzyme" barcode_list.txt > $barcode_list
e9be4649dd28 Uploaded gbsx_barcodeGenerator.sh
koen
parents:
diff changeset
14 cat barcode_summary.txt > $barcode_summary