wiki:SOP/CallingVariantsRNAseq

Version 18 (modified by krichard, 7 years ago) ( diff )

--

Notes on calling variants in RNA-seq data with GATK

Using GATK to call variants from RNA-seq reads

This example pipeline starts with a single-end short-read fastq file (Reads_1.fq).

Note that GATK requires Java 1.7 (so you may need to adjust your path to point to that version, if an older version is the default).
For example, this can be added to ~/.bashrc:
export PATH=/usr/lib/jvm/java-7-openjdk-amd64/bin:$PATH

1 - Index the reference genome for First Pass.

Create folder, "FirstPass" before running these commands.

To generate genome index files for STAR:

bsub STAR --runMode genomeGenerate --genomeDir /path/to/GenomeDir --genomeFastaFiles /path/to/genome/fasta1 /path/to/genome/fasta2 --sjdbGTFfile /path/to/GTF/FileName.gtf --sjdbOverhang 100 --runThreadN 8 

The parameters included in the above sample command are:

  • --sjdbOverhang Specifies the length of the genomic sequence around the annotated junction to be used in constructing the splice junctions database. For short reads (<50) use readLength - 1, otherwise a generic value of 100 will work as well (see manual for more info).
  • --sjdbGTFfile <GTF_file.gtf> Supplies STAR with a GTF file during the genomeGenerate step. Combined with the --sjdbScore <n> option during mapping, this will bias the alignment toward annotated junctions, and reduces alignment to pseudogenes.

To map:

    '''Run this command within the FirstPass directory'''
Input format: fastq ; output format: SAM
bsub STAR --genomeDir /path/to/GenomeDir --readFilesIn /path/to/read1.fastq  --outFileNamePrefix whateverPrefix --runThreadN 8
Note: See TracWiki for help on using the wiki.