-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
Description
When calling velociraptor::scvelo() with a reasonable dataset (dim(sce) = c(48367, 2118), using subset.row = head(metadata(sce)$HVGs, 1000), mode = "dynamical", and scvelo.params = list(neighbors = list(n_neighbors = 50L))), I am seeing this warning:
Error: C stack usage 915013296576 is too close to the limit
- The error does not crash the R process but it seems to appear right before the process returns.
- Increasing the system stack limit (
ulimit -s unlimited) did not resolve the issue. - Running the equivalent Python code (
scvelodirectly, outside R) works fine and doesn't trigger the error. - Using alternative
scvelomodes (e.g., "steady_state") also triggers the error. - The environment uses R 4.5.0 on Debian Bookworm, with basilisk providing
scvelo0.3.2 and all dependencies. - Occurs on other datasets as well
- Seemingly not related to the number of neighbors used. Sometimes it shows, sometimes it doesn't.
Minimal reproducible example
velo.out <- velociraptor::scvelo(
x = sce,
subset.row = head(metadata(sce)$HVGs, 1000),
mode = "dynamical",
scvelo.params = list(neighbors = list(n_neighbors = 50L))
)
dim(sce)
# [1] 48367 2118Additional Information
- Increasing the stack size via
ulimitdoes not help - No evidence of infinite recursion on the Python side
- Full list of R session info, packages, and Python conda environment provided upon request
As mentioned, this seemingly does not actually affect the calculations, as all necessary data for downstream plotting and data manipulation appear to be generated anyways. Still, it would be helpful to know why this might be occurring.
Thanks!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels