diff --git a/examples/vanilla/gene-leads-lite.html b/examples/vanilla/gene-leads-lite.html index 077c486e..bb69c194 100644 --- a/examples/vanilla/gene-leads-lite.html +++ b/examples/vanilla/gene-leads-lite.html @@ -29,22 +29,24 @@

Gene Leads LiteMinimal
-        /** Upon clicking a triangular annotation or tooltip, plot that gene */
+        // Setup
+        npm install ideogram
+
+        // Either use a modern import statement
+        import Ideogram from 'ideogram'
+
+        // or use a classic HTML script tag
+        <script src="https://cdn.jsdelivr.net/npm/ideogram@1.50.0/dist/js/ideogram.min.js"></script>
+
+        // Upon clicking a triangular annotation, plot that gene
         function onClickAnnot(annot) {
           ideogram.plotRelatedGenes(annot.name);
         }
 
-        // Ideogram configuration object
-        config = {
-          organism: 'homo-sapiens',
+        const ideogram = Ideogram.initGeneLeads({
           container: '#ideogram-container',
-          legendName: 'Gene leads',
-          showGeneStructureInTooltip: true,
-          showProteinInTooltip: true,
           onClickAnnot
-        }
-
-        const ideogram = Ideogram.initGeneLeads(config);
+        });
       
@@ -54,17 +56,12 @@

Gene Leads LiteMinimal