Using the below command in GATK 4.0.6.0, I am getting:
A USER ERROR has occurred: Input files reference and features have incompatible contigs: No overlapping contigs found.
Code:
gatk BaseRecalibrator \
-I NA12878_mark_duplicates.bam \
-R /home/cmccabe/Desktop/fastq/resources/ucsc.hg19.fasta \
--known-sites /home/cmccabe/Desktop/fastq/resources/dbsnp_138.b37.vcf \
--known-sites /home/cmccabe/Desktop/fastq/resources/Mills_and_1000G_gold_standard.indels.hg19.vcf \
-O /home/cmccabe/Desktop/fastq/NA12878_recal_data.table
I am using the resource bundle from the ftp as well as the fasta. Is there a way to ignore these errors or am I doing something wrong? I also aligned with the same fasta using bwa-mem
. Thank you :).
Can you check the dbsnp file and ensure the contig names match those in the
ucsc.hg19.fasta
? I think the problem might lie there.The warnings is hinting you have different chromosome names somewhere. Examine the fasta, bam and vcf and check if they all use
chr1
,chr2
,chr3
, and so on; or they all use1
,2
,3
, and so on.Thank you both very much :).