Requested files for RealignerTargetCreator (GATK)

Having a .fa file with a specific region or a single chromosome we must create the .dict and the .fai file to use the RealignerTargetCreator from GATK.

To create the .dict file we use the CreateSequenceDictionary from Picard:

java -jar CreateSequenceDictionary.jar 

This will create the file GRCh37.73.dna.22.dict.

The .fai file is created using samtools:

samtools faidx GRCh37.73.dna.22.fa

This command will create the file GRCh37.73.dna.22.fa.fai.

And, having the three files (.fa, .dict and .fa.fai) we are able to call the GATK:

java -Xmx4g -jar GenomeAnalysisTK.jar 
    -T RealignerTargetCreator 
    -I chr22.sort.marked.bam 
    -R GRCh37.73.dna.22.fa 
    -o chr22.bam.list

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: