Skip to content

Instantly share code, notes, and snippets.

@JamesKane
Last active May 28, 2018 12:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JamesKane/556c74ba2dae4feb5fc5d1a858f5909c to your computer and use it in GitHub Desktop.
Save JamesKane/556c74ba2dae4feb5fc5d1a858f5909c to your computer and use it in GitHub Desktop.
Use GATK to create an unaligned BAM from FASTQ data
# USAGE: sh fastq_to_sam.sh <fastq1> <fastq2> <sample_name> <read_group> <platform_unit>
gatk=~/Genomics/gatk-4.0.4.0/gatk
$gatk --java-options "-Xmx8G" FastqToSam \
-FASTQ=$1 \
-FASTQ2=$2 \
-OUTPUT=$3.unmapped.bam \
-READ_GROUP_NAME=$4 \
-SAMPLE_NAME=$3 \
-LIBRARY_NAME=$3 \
-PLATFORM_UNIT=$5 \
-PLATFORM=illumina
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment