Back to main Gene Leads

Gene Leads LiteMinimal example code

        /** Upon clicking a triangular annotation or tooltip, plot that gene */
        function onClickAnnot(annot) {
          ideogram.plotRelatedGenes(annot.name);
        }

        // Ideogram configuration object
        config = {
          organism: 'homo-sapiens',
          container: '#ideogram-container',
          legendName: 'Gene leads',
          showGeneStructureInTooltip: true,
          showProteinInTooltip: true,
          onClickAnnot
        }

        const ideogram = Ideogram.initGeneLeads(config);