geneset iterate

This commit is contained in:
Colin Megill
2021-07-23 13:28:17 -07:00
parent 0a69af98c5
commit c489221296
+12
View File
@@ -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()}
<Async
watchFn={Dotplot.watchAsync}
promiseFn={this.fetchAsyncProps}