The difference between UCSC and GRCh* notation is in lack of chr prefix name, slightly different mitochondrial chromosome name. E.g. 2 instead of chr2, Y instead of chrY, MT instead of chrMT. In JBR API Genome. chromosomeNamesMap provides a mapping from alternative names into Chromosome object, and Chromosome.name will always return UCSC like name. So we need some additional convertion/mapping layer when accessing to BAM chromsomes names using just model.chromosome.name.
Affects CRAM/BAM/SAM support.
P.S: Do not hardcode chr removal manually, or chrM -> MT mapping. It is also stored in Genome info that is loaded from annotations descriptor.
The difference between UCSC and GRCh* notation is in lack of
chr
prefix name, slightly different mitochondrial chromosome name. E.g.2
instead ofchr2
,Y
instead ofchrY
,MT
instead ofchrMT
. In JBR APIGenome. chromosomeNamesMap
provides a mapping from alternative names intoChromosome
object, andChromosome.name
will always return UCSC like name. So we need some additional convertion/mapping layer when accessing to BAM chromsomes names using justmodel.chromosome.name
.Affects CRAM/BAM/SAM support.
P.S: Do not hardcode
chr
removal manually, orchrM
->MT
mapping. It is also stored in Genome info that is loaded from annotations descriptor.