Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
WalshKieran committed Jun 4, 2024
1 parent 7d318d3 commit 3cd3388
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/customview.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
const matrix = $metadataContent.result;
metadataNames = matrix[0].splice(1)
const sampleNames = matrix.slice(1).map(row => row[0]);
const sampleMatches = findMatchesSorted([sampleNames], $dataProcessed.result.sampleNames);
const sampleMatches = findMatchesSorted([sampleNames.map(s => s.toUpperCase())], $dataProcessed.result.sampleNames);
commonSamples = sampleMatches.map(m => sampleNames[m.rowIndex])
if(commonSamples.length == 0) {
set({error: 'Sample column in metadata must match first row of expression matrix'})
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/lib/utils/plot.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function getPlotScatter(heading, data, xName, yName, zName, orderZ, colorway=und
type: "scattergl",
mode: 'markers+text',
name: cat,
hovertext: hasName ? data.map(d => d.name) : undefined,
hovertext: hasName ? filtered.map(d => d.name) : undefined,
hoverinfo: "x+y+text+name",
hoverlabel: {
bgcolor: 'white',
Expand Down

0 comments on commit 3cd3388

Please sign in to comment.