diff --git a/frontend/src/lib/components/customview.svelte b/frontend/src/lib/components/customview.svelte index 3138b40..515b33f 100644 --- a/frontend/src/lib/components/customview.svelte +++ b/frontend/src/lib/components/customview.svelte @@ -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'}) diff --git a/frontend/src/lib/utils/plot.js b/frontend/src/lib/utils/plot.js index 2de649c..884995a 100644 --- a/frontend/src/lib/utils/plot.js +++ b/frontend/src/lib/utils/plot.js @@ -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',