Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SQL for non-priority case in cell plot #384

Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,15 @@ public List<String> fetchCellPlotParameter(String experimentAccession, String me


private static final String SELECT_DEFAULT_PLOT_METHOD_AND_PARAMETERISATION =
"SELECT dr.method, jsonb_array_elements(dr.parameterisation) parameterisation " +
"SELECT DISTINCT dr.method, jsonb_array_elements(dr.parameterisation) parameterisation " +
"FROM scxa_dimension_reduction dr " +
"JOIN (SELECT method, max(priority) as prt " +
"FROM scxa_dimension_reduction " +
"WHERE experiment_accession=:experiment_accession " +
" GROUP BY method) fi " +
"ON dr.method = fi.method " +
"AND dr.priority = fi.prt";
"AND dr.priority = fi.prt " +
"ORDER BY parameterisation";

public Map<String, List<JsonObject>> fetchDefaultPlotMethodWithParameterisation(String experimentAccession) {
var namedParameters = ImmutableMap.of("experiment_accession", experimentAccession);
Expand Down
Loading