Closed NicoNekoru closed 2 years ago
I forgot that chr
is the name of the chromosome and not just the index, the solution to this would be to set chr
to the actual chromosome you are trying to annotate i. e.
var peach = new Ideogram({
organism: 'peach',
annotations: [{
name: 'test',
chr: 'G1',
start: 1,
stop: 1
}],
container: '.peach',
});
var chickpea = new Ideogram({
organism: 'chickpea',
annotations: [{
name: 'test',
chr: 'Ca1',
start: 1,
stop: 1
}],
container: '.chickpea',
});
Ideogram.js is failing to create annotations for organisms who have their annotations on the NCBI listed with "non-numeric chromosomes" (i. e. Ca1, Ca2, ... and G1, G2, ...). Both class initialization with annotations (
new Ideogram({organism, annotations})
) and theideogram.drawAnnots
method fail to create annotations for such organisms.Example:
Expected output:
Actual output: