To celebrate the release of GATK 4.0, we are giving away free credits for running the GATK4 Best Practices pipelines in FireCloud, our secure online analysis portal. It’s first come first serve, so sign up now to claim your free credits worth $250. Sponsored by Google Cloud. Learn more at

Error: Unable to open index file (mark/reset not supported)

erinsyboutserinsybouts San AntonioMember

I have been trying to use multiple GATK tools after processing my sample bam files with multiple Picard tools (AddOrReplaceReadGroups, SortSam, MarkDuplicates, and ReorderSam in that order) and creating a new index file with each step. However, I keep getting the same error:

My input:
java -jar $GATK -T RealignerTargetCreator -R $human_wgfa -I 000ordered.bam -o 000realignertargetcreator.intervals


INFO 15:22:51,165 HelpFormatter - --------------------------------------------------------------------------------
INFO 15:22:51,166 HelpFormatter - The Genome Analysis Toolkit (GATK) v3.5-0-g36282e4, Compiled 2015/11/25 04:03:56
INFO 15:22:51,166 HelpFormatter - Copyright (c) 2010 The Broad Institute
INFO 15:22:51,166 HelpFormatter - For support and documentation go to
INFO 15:22:51,169 HelpFormatter - Program Args: -T RealignerTargetCreator -R /Users/sybouts/Genomes/Homo_sapiens/UCSC/hg38/Sequence/WholeGenomeFasta/genome.fa -I 000ordered.bam -o 000realignertargetcreator.intervals
INFO 15:22:51,173 HelpFormatter - Executing as on Mac OS X 10.11.4 x86_64; Java HotSpot(TM) 64-Bit Server VM 1.8.0_92-b14.
INFO 15:22:51,173 HelpFormatter - Date/Time: 2016/05/13 15:22:51
INFO 15:22:51,174 HelpFormatter - --------------------------------------------------------------------------------
INFO 15:22:51,174 HelpFormatter - --------------------------------------------------------------------------------
INFO 15:22:51,435 GenomeAnalysisEngine - Strictness is SILENT
INFO 15:22:51,507 GenomeAnalysisEngine - Downsampling Settings: Method: BY_SAMPLE, Target Coverage: 1000
INFO 15:22:51,511 SAMDataSource$SAMReaders - Initializing SAMRecords in serial
WARNING: BAM index file /Users/sybouts/SA_BLM_family/000ordered.bai is older than BAM /Users/sybouts/SA_BLM_family/000ordered.bam
INFO 15:22:51,529 SAMDataSource$SAMReaders - Done initializing BAM readers: total time 0.02
INFO 15:22:52,424 GATKRunReport - Uploaded run statistics report to AWS S3

ERROR ------------------------------------------------------------------------------------------
ERROR stack trace

org.broadinstitute.gatk.utils.exceptions.ReviewedGATKException: Unable to open index file (mark/reset not supported)000ordered.bai
at org.broadinstitute.gatk.engine.datasources.reads.GATKBAMIndex.openIndexFile(
at org.broadinstitute.gatk.engine.datasources.reads.GATKBAMIndex.(
at org.broadinstitute.gatk.engine.datasources.reads.SAMDataSource.(
at org.broadinstitute.gatk.engine.GenomeAnalysisEngine.createReadsDataSource(
at org.broadinstitute.gatk.engine.GenomeAnalysisEngine.initializeDataSources(
at org.broadinstitute.gatk.engine.GenomeAnalysisEngine.execute(
at org.broadinstitute.gatk.engine.CommandLineExecutable.execute(
at org.broadinstitute.gatk.utils.commandline.CommandLineProgram.start(
at org.broadinstitute.gatk.utils.commandline.CommandLineProgram.start(
at org.broadinstitute.gatk.engine.CommandLineGATK.main(
Caused by: mark/reset not supported
at htsjdk.samtools.SamIndexes.asBaiSeekableStreamOrNull(
at org.broadinstitute.gatk.engine.datasources.reads.GATKBAMIndex.openIndexFile(
... 9 more

ERROR ------------------------------------------------------------------------------------------
ERROR A GATK RUNTIME ERROR has occurred (version 3.5-0-g36282e4):
ERROR This might be a bug. Please check the documentation guide to see if this is a known problem.
ERROR If not, please post the error message, with stack trace, to the GATK forum.
ERROR Visit our website and forum for extensive documentation and answers to
ERROR commonly asked questions
ERROR MESSAGE: Unable to open index file (mark/reset not supported)000ordered.bai
ERROR ------------------------------------------------------------------------------------------

I am really frustrated and done everything I can to figure out what is going on, but the same thing keeps happening. Please let me know if there is any other information that may be helpful! Thanks!

Issue · Github
by Sheila

Issue Number
Last Updated
Closed By

Best Answer


Sign In or Register to comment.