ebi-gene-expression-group / atlas-web-single-cell

Single Cell Expression Atlas web application
Apache License 2.0
5 stars 5 forks source link

https://wwwdev.ebi.ac.uk/gxa/sc/experiments/E-HCAD-30/results/tsne- Cellplot page - 400 errors #357

Closed upendrakumbham closed 10 months ago

upendrakumbham commented 11 months ago

The result page gives 400 errors for the experiment 'E-HCAD-30'

These two endpoints behaving a weirdly:

/gxa/sc/json/cell-plots/E-HCAD-30/clusters/metadata/20?plotMethod=tsne&accessKey=&perplexity=50 => 400

 /gxa/sc/json/cell-plots/E-HCAD-30/expression/?plotMethod=tsne&accessKey=&perplexity=50 => 400

Need to investigate to fix it.

Here is the screenshot:

image

upendrakumbham commented 10 months ago

In the TsnePlotViewRoute.js file, this onchange methods were not triggering when we click back button to refresh url with latest params:


 plotTypeDropdown={plotTypeDropdown}
          selectedPlotOptionLabel={this.state.selectedPlotOptionLabel}
          onChangePlotTypes={
            (plotOption) => {
              this.setState({
                selectedPlotType: plotOption.value,
                selectedPlotOption: defaultPlotMethodAndParameterisation[plotOption.value],
                selectedPlotOptionLabel: Object.keys(defaultPlotMethodAndParameterisation[plotOption.value])[0]
                    + ": " + Object.values(defaultPlotMethodAndParameterisation[plotOption.value])[0],
              })

              const query = new URLSearchParams(history.location.search)
              query.set(`plotType`, plotOption.value)
              query.set(`plotOption`, defaultPlotMethodAndParameterisation[plotOption.value])
              resetHighlightClusters(query)
              updateUrlWithParams(query)
              }
          }
          onChangePlotOptions={
            (plotOption) => {
              this.setState({
                selectedPlotOption: plotOption.value,
                selectedPlotOptionLabel: plotOption.label
              })
              const query = new URLSearchParams(history.location.search)
              query.set(`plotOption`, plotOption.value)
              resetHighlightClusters(query)
              updateUrlWithParams(query)
              }
          }
upendrakumbham commented 10 months ago

Image