From c489221296a3d2ab8d1cb6e4a4d99f6f90515a6f Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Sat, 1 May 2021 17:31:38 -0700 Subject: [PATCH] geneset iterate --- client/src/components/dotplot/index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/src/components/dotplot/index.js b/client/src/components/dotplot/index.js index 7f0f313e..487b422d 100644 --- a/client/src/components/dotplot/index.js +++ b/client/src/components/dotplot/index.js @@ -129,6 +129,17 @@ class Dotplot extends React.Component { }); }; + dotplotColumns = () => { + const { genesets } = this.props; + /* TODO(colinmegill) #632 wire to dotplot reducer */ + if (genesets && genesets.get("bladder urothelial")) { + const _geneset = genesets.get("bladder urothelial"); + _geneset.genes.forEach((a, b) => { + console.log("bladder u", b); + }); + } + }; + fetchAsyncProps = async (props) => { const { viewport, annoMatrix, colors } = props.watchProps; @@ -245,6 +256,7 @@ class Dotplot extends React.Component { width={viewport.width} height={viewport.height} > + {this.dotplotColumns()}