Skip to content
This repository was archived by the owner on Sep 4, 2020. It is now read-only.

Conversation

@lingyun1010
Copy link
Contributor

This feature branch is implemented to synch cluster and gene expression tSNE plots by clicking the cluster's legend. The json payload for gene expression is fetched from new endpoints introduced in atlas. As we can not set react states directly from the highcharts event function, we use the nodejs eventEmitter to pass the legend's name and visibility to the scatter plots.

@coveralls
Copy link

coveralls commented Mar 15, 2019

Pull Request Test Coverage Report for Build 322

  • 12 of 20 (60.0%) changed or added relevant lines in 4 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+3.7%) to 70.751%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/GeneExpressionTSnePlot.js 7 9 77.78%
src/plotloader/ScatterPlot.js 2 4 50.0%
src/ClusterTSnePlot.js 2 6 33.33%
Totals Coverage Status
Change from base Build 309: 3.7%
Covered Lines: 128
Relevant Lines: 167

💛 - Coveralls

symbolHeight: 5,
symbolWidth: 450
},
plotOptions: {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot! This component used to have plot options, but it looks like a was a little overzealous last time I modified the tooltip, and left behind some invalid Highcharts options (see line 91). Could you remove them so we don't have invalid options lying around?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes. This plotOptions I added is to make all points same style after gene expression json payload is clustered into multiple series as well. I cannot access the line 91 by the link. Where is the invalid Highcharts options you would like to remove?

series={_colourizeExpressionLevel(expressionGradientColours, highlightClusters, props.cluster)(plotData)}
highchartsConfig={highchartsConfig}
loading={loading}
eventEmitter={props.eventEmitter}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add eventEmitter to const { } = props on line 61.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants