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

Commit

Permalink
Merge branch 'master' into feature/155186331-read-cluster-files
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsomunozpomer committed Apr 30, 2018
2 parents 5cfa124 + a2ce2f3 commit 7462a0e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
11 changes: 7 additions & 4 deletions html/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,16 @@ import React from 'react'
import ReactDOM from 'react-dom'
import ExperimentPageView from '../src/index'

const perplexities = [1, 5, 10, 15, 20]
const ks = [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]

class Demo extends React.Component {
constructor(props) {
super(props)

this.state = {
k: 15,
perplexity: 10,
k: ks[Math.round((ks.length -1) / 2)],
perplexity: perplexities[Math.round((perplexities.length - 1) / 2)],
geneId: ``,
inputHighlightClusters: ``,
highlightClusters: []
Expand Down Expand Up @@ -48,9 +51,9 @@ class Demo extends React.Component {
<ExperimentPageView atlasUrl={`http://localhost:8080/scxa/`}
suggesterEndpoint={`json/suggestions`}
experimentAccession={`E-GEOD-106540`}
perplexities={[1, 5, 10, 15, 20]}
perplexities={perplexities}
selectedPerplexity={this.state.perplexity}
ks={[6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]}
ks={ks}
selectedK={this.state.k}
highlightClusters={this.state.highlightClusters}
geneId={this.state.geneId}
Expand Down
2 changes: 1 addition & 1 deletion html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<script src="vendorCommons.bundle.js"></script>
<script src="demo.bundle.js"></script>

<!-- Set to http://localhost:8080/gxa/ or http://localhost:8080/gxa_sc/ -- Remember the trailing slash! -->
<!-- Set to http://localhost:8080/gxa/ or http://localhost:8080/scxa/ -- Remember the trailing slash! -->
<script>
demo.render({}, 'target')
</script>
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "expression-atlas-experiment-page-tsne-plot",
"version": "1.14.0",
"version": "1.15.0",
"description": "t-SNE plot view tab for Single Cell Expression Atlas experiment page",
"main": "lib/index.js",
"scripts": {
Expand Down

0 comments on commit 7462a0e

Please sign in to comment.