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

Single cell browser component #851

Merged
merged 39 commits into from
Feb 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
f5a11b0
starting component
a-shilin Oct 30, 2024
c2b0fe3
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Nov 4, 2024
7cc4e32
further buildout of components
a-shilin Nov 4, 2024
3907096
fixing v-key errors
a-shilin Nov 4, 2024
f0957ba
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Nov 22, 2024
b30714b
Single Cell Browser component(s)
a-shilin Nov 22, 2024
ccd0d83
Merge branch 'master' into single-cell-browser-component
a-shilin Dec 2, 2024
7cc030b
adding hover labels to umap buttons and 'colo by' labels
a-shilin Dec 2, 2024
64f8e13
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Dec 3, 2024
f02567c
add umap tooltip for zoom/pan
a-shilin Dec 3, 2024
d2e209b
data cleanup fix
a-shilin Dec 3, 2024
fb25db4
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Dec 4, 2024
fdaa58a
starting select component for single cell browser color picker
a-shilin Dec 4, 2024
1b6065b
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Dec 9, 2024
5f7475b
cfde citation formatting
a-shilin Dec 9, 2024
7953d13
adding support for query string params
a-shilin Dec 9, 2024
e1f0d8c
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Dec 13, 2024
75714e2
adding layouts + more
a-shilin Dec 13, 2024
3232859
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Dec 17, 2024
8de5427
single cell plot updates
a-shilin Dec 17, 2024
635afeb
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Jan 9, 2025
769489e
major refactor. moved all SC components to own folder. separated data…
a-shilin Jan 9, 2025
9a7236d
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Jan 14, 2025
3ec0bef
cell browser optimizations
a-shilin Jan 14, 2025
0b256c1
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Jan 16, 2025
b2dccc1
adding gene search err, and gene loading indicator
a-shilin Jan 16, 2025
7a36053
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Jan 23, 2025
9401566
adding support for gene stats from marker_genes api
a-shilin Jan 24, 2025
cd65605
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Jan 24, 2025
99bc2b7
small tweak
a-shilin Jan 24, 2025
aed7caf
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Jan 28, 2025
1b78fcc
cleaning up selector component, created mouse tooltip component
a-shilin Jan 28, 2025
557fdfe
mouseTooltip service
a-shilin Jan 29, 2025
12b4b20
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Jan 30, 2025
acf57ae
umap color data optimization
a-shilin Jan 30, 2025
a9b5f6b
umap data optimizations, scrollTo fix
a-shilin Jan 30, 2025
4fe74ec
change expression color scale, select list scrollTo fix, update marke…
a-shilin Jan 31, 2025
4be42d1
Merge remote-tracking branch 'origin/master' into single-cell-browser…
a-shilin Feb 7, 2025
ba069d3
update cell count discrepancy, update dot size in umaps
a-shilin Feb 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<div class="" style="display:flex; gap:20px;">
<div v-if="coordinates" style="display:flex; flex-direction: column; width: min-content;">
<div style="display:flex; justify-content: space-between; align-items: baseline;">
<strong style="font-size: 16px; margin: 0 0 5px;">UMAP</strong> {{ coordinates.length.toLocaleString() }} cells
<strong style="font-size: 16px; margin: 0 0 5px;">UMAP</strong> {{ metadata.totalCells.toLocaleString() }} cells
</div>
<research-umap-plot-gl
:group="datasetId"
Expand Down Expand Up @@ -154,7 +154,7 @@
<div class="" style="display:flex; gap:20px">
<div v-if="coordinates" style="display:flex; flex-direction: column; width: min-content;">
<div style="display:flex; justify-content: space-between; align-items: baseline;">
<span style="font-size: 16px; margin: 0 0 5px;"><span style="font-weight: bold">UMAP</span> <span style="font-style: italic;">{{ geneExpressionVars.selectedGene ? `${geneExpressionVars.selectedGene}` : '' }}</span></span> {{ coordinates.length.toLocaleString() }} cells
<span style="font-size: 16px; margin: 0 0 5px;"><span style="font-weight: bold">UMAP</span> <span style="font-style: italic;">{{ geneExpressionVars.selectedGene ? `${geneExpressionVars.selectedGene}` : '' }}</span></span> {{ metadata.totalCells.toLocaleString() }} cells
</div>
<research-umap-plot-gl
:group="datasetId"
Expand Down Expand Up @@ -340,7 +340,7 @@
<div class="" style="display:flex; gap:20px">
<div v-if="coordinates" style="display:flex; flex-direction: column; width: min-content;">
<div style="display:flex; justify-content: space-between; align-items: baseline;">
<span style="font-size: 16px; margin: 0 0 5px;"><span style="font-weight: bold">UMAP</span> <span style="font-style: italic;">{{ geneExpressionVars.selectedGene ? `${geneExpressionVars.selectedGene}` : '' }}</span></span> {{ coordinates.length.toLocaleString() }} cells
<span style="font-size: 16px; margin: 0 0 5px;"><span style="font-weight: bold">UMAP</span> <span style="font-style: italic;">{{ geneExpressionVars.selectedGene ? `${geneExpressionVars.selectedGene}` : '' }}</span></span> {{ metadata.totalCells.toLocaleString() }} cells
</div>
<div style="display:flex; position: relative">
<research-umap-plot-gl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ export default Vue.component('research-umap-plot-gl', {

uniform vec2 u_resolution;
uniform float u_scale;
uniform float u_scale_base;
uniform vec2 u_translate;

varying vec4 v_color;
Expand All @@ -304,10 +305,11 @@ export default Vue.component('research-umap-plot-gl', {
vec2 zeroToOne = scaledPos / u_resolution;
vec2 clipSpace = (zeroToOne * 2.0 - 1.0) * vec2(1, 1);

float baseSize = 3.0;
float extraSize = 5.0;
float baseSize = 1.0;
float extraSize = 1.0;
gl_Position = vec4(clipSpace, 0, 1);
gl_PointSize = baseSize + (extraSize * a_isHighlight);
float scalar = u_scale > u_scale_base ? 0.5 : 1.0;
gl_PointSize = (baseSize + (extraSize * a_isHighlight)) * ((u_scale / u_scale_base) * scalar);

v_color = a_color;
v_isHighlight = a_isHighlight;
Expand Down Expand Up @@ -437,6 +439,9 @@ export default Vue.component('research-umap-plot-gl', {
const scaleLoc = gl.getUniformLocation(this.program, 'u_scale');
gl.uniform1f(scaleLoc, this.scale);

const scaleLocBase = gl.getUniformLocation(this.program, 'u_scale_base');
gl.uniform1f(scaleLocBase, this.resetScale);

const translateLoc = gl.getUniformLocation(this.program, 'u_translate');
gl.uniform2f(translateLoc, this.translate.x, this.translate.y);

Expand Down
Loading