This is a test version of Biostars. For the public version, visit https://www.biostars.org.
GATK Error Message: Invalid argument value 'RealignerTargetCreator at position' 0

I am using gatk 3.7 and trying to make a vcf file from sam file using gatk pipeline. I am getting an error Error Message: Invalid argument value 'RealignerTargetCreator at position' 0 why i am getting this error message.

snp vcf gatk

java -jar GenomeAnalysisTK.jar RealignerTargetCreator -R hg38.fa -o target.list -I makred.bam

The example from the GATK documentation is the following:

 java -jar GenomeAnalysisTK.jar \
   -T RealignerTargetCreator \
   -R reference.fasta \
   -I input.bam \
   --known indels.vcf \
   -o forIndelRealigner.intervals

There is a difference with your command, concerning RealignerTargetCreator.

2 answers

One more thing. GATK 4 doesn't have the option of TargetRealignmentCreator, so what's the alternate of it ? do we apply haplotype caller directly on marked-duplicate.bam file ?

add -T RealignerTargetCreator to your command line after the jar file it will solve the problem.

Log in to answer this question.