Thanks.
The sequences for GRCh38 and hg38 are nearly identical. However, hg38 seems to have more 'N's and 'n's, at least. Second, the GRCh38 "analysis set" contains coordinates that hg38 (and GRCh38) doesn't. Third, the headers differ wildly:
GRCh38: >gi|568336022|gb|CM000664.2| Homo sapiens chromosome 2, GRCh38 reference primary assembly
hg38: >chr2
My concern is that to GATK RealignerTargetCreator I'm passing the GRCh38 analysis set using --reference_sequence and a BAM file aligned to this assembly using --input_file, but VCF files mapped to hg38 using --known. How does GATK know that '568336022' is the same as 'chr2'?
I confirmed that RealignerTargetCreator produces different target intervals if I remove that argument (I also reran with --known to confirm that it's completely deterministic). This is a great sign, but it doesn't prove that the VCF file is being treated correctly.
So my question is how to ensure that tools (especially GATK) treat the mixed references (GRCh38 analysis set and hg38) correctly. Is it enough to change 'chr2' to '568336022'?