view fastq2sam_wrapper.sh @ 9:644ad3ef3cba draft

Uploaded
author devteam
date Wed, 29 Jan 2014 15:50:55 -0500
parents 86e7e072c4c9
children
line wrap: on
line source

#!/bin/bash

if [ "$1" == "sam" ]
then
    output=$2.sam
else
    output=$2
fi

java -XX:DefaultMaxRAMFraction=1 -XX:+UseParallelGC -jar "$JAVA_JAR_PATH/FastqToSam.jar" SAMPLE_NAME="$3" READ_GROUP_NAME="$4" OUTPUT=$output ${*:5}

if [ "$1" == "sam" ]
then
    mv $2.sam $2
fi