annotate fastq2sam_wrapper.sh @ 106:6c17c441f8cd draft

Uploaded
author devteam
date Tue, 25 Feb 2014 00:45:28 -0500
parents 7d0d25eabacb
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
101
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
1 #!/bin/bash
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
2
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
3 if [ "$1" == "sam" ]
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
4 then
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
5 output=$2.sam
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
6 else
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
7 output=$2
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
8 fi
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
9
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
10 java -XX:DefaultMaxRAMFraction=1 -XX:+UseParallelGC -jar "$JAVA_JAR_PATH/FastqToSam.jar" SAMPLE_NAME="$3" READ_GROUP_NAME="$4" OUTPUT=$output ${*:5} 2>&1
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
11
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
12 if [ "$1" == "sam" ]
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
13 then
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
14 mv $2.sam $2
7d0d25eabacb Uploaded
devteam
parents:
diff changeset
15 fi