@@ -11,7 +11,7 @@ import PlotUtils from '~/lib/plot'
1111const getPlotDimensions = PlotUtils . getPlotDimensions
1212import ScatterPlot from '~/components/visualization/ScatterPlot'
1313import StudyViolinPlot from '~/components/visualization/StudyViolinPlot'
14- import DotPlot from '~/components/visualization/DotPlot'
14+ import DotPlot , { shouldUsePreprocessedData } from '~/components/visualization/DotPlot'
1515import Heatmap from '~/components/visualization/Heatmap'
1616import Pathway from '~/components/visualization/Pathway'
1717import GeneListHeatmap from '~/components/visualization/GeneListHeatmap'
@@ -279,6 +279,9 @@ export default function ExploreDisplayTabs({
279279 const referencePlotDataParams = _clone ( exploreParams )
280280 referencePlotDataParams . genes = [ ]
281281
282+ // disable 50-gene query limit if study has preprocessed dotplot data
283+ const disableGeneQueryLimit = shouldUsePreprocessedData ( flags , exploreInfo )
284+
282285 // TODO (SCP-5760): Refactor pathway diagrams into independent component where
283286 // React state can be propagated conventionally, then remove this
284287 window . SCP . exploreParamsWithDefaults = exploreParamsWithDefaults
@@ -539,6 +542,7 @@ export default function ExploreDisplayTabs({
539542 isLoading = { ! exploreInfo }
540543 speciesList = { exploreInfo ? exploreInfo . taxonNames : [ ] }
541544 selectedAnnotation = { selectedAnnotation }
545+ disableGeneQueryLimit = { disableGeneQueryLimit }
542546 />
543547 { // show if this is gene search || gene list
544548 ( isGene || isGeneList || hasIdeogramOutputs || isPathway ) &&
0 commit comments