Previously, you have create a script that will create an image with the ideogram.
Now we want to add labels to the ideogram. You can specify the parameters in the defaults.json, but you can do it programmatically as well. You can use the update method on any objects to change the values of the parameters.
We want ticks on the ideogram. Therefore we need to create the local tick
blocks and a global ticks
block.
Now we have the global ticks
block and the local tick
blocks. We know that the tick
blocks should be in the ticks
block. So in order to do that, we add tick
by calling addTick
on the ticks
block.
Lastly, we need to add the ticks
to our CircosAPI
block.
Print the compile and run circos to get the image.