Adjust default bigdata#1062
Conversation
Signed-off-by: Alex Pickering <alexvpickering@gmail.com>
Signed-off-by: Alex Pickering <alexvpickering@gmail.com>
Signed-off-by: Alex Pickering <alexvpickering@gmail.com>
|
Great job! No new security vulnerabilities introduced in this pull requestUse @Checkmarx to interact with Checkmarx PR Assistant. |
📦 Next.js Bundle Analysis for uiThis analysis was generated by the Next.js Bundle Analysis action. 🤖
|
| Page | Size (compressed) |
|---|---|
global |
684.87 KB (🟡 +11 B) |
Details
The global bundle is the javascript bundle that loads alongside every page. It is in its own category because its impact is much higher - an increase to its size means that every page on your website loads slower, and a decrease means every page loads faster.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
If you want further insight into what is behind the changes, give @next/bundle-analyzer a try!
Twelve Pages Changed Size
The following pages changed size from the code in this PR compared to its base branch:
| Page | Size (compressed) | First Load |
|---|---|---|
/experiments/[experimentId]/data-processing |
490.61 KB (🟡 +589 B) |
1.15 MB |
/experiments/[experimentId]/plots-and-tables/dot-plot |
445.79 KB (🟡 +709 B) |
1.1 MB |
/experiments/[experimentId]/plots-and-tables/embedding-categorical |
446.33 KB (🟡 +687 B) |
1.1 MB |
/experiments/[experimentId]/plots-and-tables/embedding-continuous |
466.63 KB (🟡 +709 B) |
1.12 MB |
/experiments/[experimentId]/plots-and-tables/frequency |
447.61 KB (🟡 +671 B) |
1.11 MB |
/experiments/[experimentId]/plots-and-tables/marker-heatmap |
535.99 KB (🟡 +710 B) |
1.19 MB |
/experiments/[experimentId]/plots-and-tables/normalized-matrix |
140.21 KB (🟡 +694 B) |
825.08 KB |
/experiments/[experimentId]/plots-and-tables/spatial-categorical |
893.71 KB (🟡 +710 B) |
1.54 MB |
/experiments/[experimentId]/plots-and-tables/spatial-feature |
895.56 KB (🟡 +711 B) |
1.54 MB |
/experiments/[experimentId]/plots-and-tables/trajectory-analysis |
449.49 KB (🟡 +687 B) |
1.11 MB |
/experiments/[experimentId]/plots-and-tables/violin |
467.74 KB (🟡 +710 B) |
1.13 MB |
/experiments/[experimentId]/plots-and-tables/volcano |
452.08 KB (🟡 +705 B) |
1.11 MB |
Details
Only the gzipped size is provided here based on an expert tip.
First Load is the size of the global bundle plus the bundle for the individual page. If a user were to show up to your website and land on a given page, the first load size represents the amount of javascript that user would need to download. If next/link is used, subsequent page loads would only need to download that page's bundle (the number in the "Size" column), since the global bundle has already been downloaded.
Any third party scripts you have added directly to your app using the <script> tag are not accounted for in this analysis
Next to the size is how much the size has increased or decreased compared with the base branch of this PR. If this percentage has increased by 20% or more, there will be a red status indicator applied, indicating that special attention should be given to this.

Description
This pull request introduces cell-count-aware default configurations for embedding plots, particularly optimizing marker settings for large datasets (over 100,000 cells). It does so by dynamically adjusting plot defaults and reset behavior based on the number of cells, ensuring better performance and clarity in visualizations with large data. The changes also standardize how initial plot configurations are determined and compared, and introduce a new utility for handling these adjustments.
Cell-count-aware embedding plot configuration:
getEmbeddingInitialConfig, which returns the initial config for embedding plots, adjusting marker size and outline for datasets with more than 100,000 cells. Also added helpersgetTotalCellCountandisEmbeddingPlotTypefor cell count calculations and plot type checks (src/utils/plotConfig/getEmbeddingInitialConfig.js).ConfigureEmbedding,DataIntegration,PlotContainer) to usegetEmbeddingInitialConfigfor setting initial config, reset logic, and to auto-apply large-dataset marker defaults if the config hasn't been customized by the user (src/components/data-processing/ConfigureEmbedding/ConfigureEmbedding.jsx,src/components/data-processing/DataIntegration/DataIntegration.jsx,src/components/plots/PlotContainer.jsx). [1] [2] [3]Reset and config comparison improvements:
defaultValues(which is now used for metadata about defaults), ensuring accurate detection of user-customized settings and correct enabling/disabling of the reset button (src/components/data-processing/ConfigureEmbedding/ConfigureEmbedding.jsx,src/components/data-processing/DataIntegration/DataIntegration.jsx,src/components/plots/PlotLayout.jsx,src/components/plots/PlotContainer.jsx). [1] [2] [3] [4]keepValuesOnResetwhere appropriate (src/components/data-processing/ConfigureEmbedding/ConfigureEmbedding.jsx,src/components/data-processing/DataIntegration/DataIntegration.jsx,src/components/plots/PlotContainer.jsx). [1] [2] [3]Initial state adjustments:
'spectral'by default for several embedding preview plot initial configs, improving visual consistency for mitochondrial content, doublet score, number of genes, and number of UMIs (src/redux/reducers/componentConfig/initialState.js). [1] [2] [3] [4]Details
URL to issue
N/A
Link to staging deployment URL (or set N/A)
N/A
Links to any PRs or resources related to this PR
Integration test branch
master
Merge checklist
Your changes will be ready for merging after all of the steps below have been completed.
Code updates
Have best practices and ongoing refactors being observed in this PR
Manual/unit testing
Integration testing
You must check the box below to run integration tests on the latest commit on your PR branch.
Integration tests have to pass before the PR can be merged. Without checking the box, your PR
will not pass the required status checks for merging.
Documentation updates
Optional