Skip to content

Column-wise dask map_blocks #3723

Open
1 of 2 issues completed
Open

Description

@ilan-gold

What kind of feature would you like to request?

Additional function parameters / changed functionality / changed defaults?

Please describe your wishes

Almost all of our dask functionality relies implicitly or explicitly on row-wise chunking but likely many of the algorithms can be adapted to column-wise chunking.

For example (not a comprehensive list but should highlight the general procedure):

  • (feat): sc.get.aggregate via dask #3700 - sc.get.aggregate can use csc matrices and break up the computation across features (since the computations are independent over features), and then concatenate.
  • PCA can likely be done as a multi-pass algorithm over CSC matrices - not efficient but doable.
  • HVG in general operates as a feature-space algorithm and, aside from seurat v3, really only relies on a mean-var calculation which is already CSC compatible (even seurat v3 does but in this case, also has this additional loess step). The mark here would be seurat v3/batched HVG selection where row-wise chunking is actually bad for the computation since it requires (likely) random subsets. In this case, proceeding in a chunked manner i.e., chunk-of-genes by chunk-of-genes probably would not be too bad.
  • top_segment_proportions (i.e., from the percent_top argument in calculate_qc_metrics) could be done in feature-wise chunks as well, and then concatenated at the end

Sub-issues

Sub-issues

1 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added
    Triage 🩺
    on Jul 21, 2025
  2. removed
    Triage 🩺
    on Jul 21, 2025
  3. added this to the 1.12.0 milestone on Jul 21, 2025
  4. added
    Meta
    on Jul 24, 2025
  5. modified the milestones: 1.12.0, 1.13.0 on Nov 3, 2025
  6. modified the milestones: 1.13.0, 1.14.0 on Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Meta

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions