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

floodPseudotime #77

Open
allisoncheney opened this issue Oct 28, 2021 · 1 comment
Open

floodPseudotime #77

allisoncheney opened this issue Oct 28, 2021 · 1 comment

Comments

@allisoncheney
Copy link

Hi, I'm having trouble with the floodPseudotime function.

rootcells <- cellsInCluster(hffURD, "ARCcluster", "12")

hffURD.floods <- floodPseudotime(hffURD, root.cells = rootcells, n=50, minimum.cells.flooded = 2,  verbose=TRUE)

[1] "Starting flood number 1"
Error in intI(j, n = d[2], dn[[2]], give.dn = FALSE) : no 'dimnames[[.]]': cannot use character indexing

here's the traceback:
11. stop("no 'dimnames[[.]]': cannot use character indexing")
10. intI(j, n = d[2], dn[[2]], give.dn = FALSE)
9. subCsp_ij(x, i, j, drop = drop)
8. tm.flood[cells.not.visited, cells.visited, drop = F]
7. tm.flood[cells.not.visited, cells.visited, drop = F]
6. apply(tm.flood[cells.not.visited, cells.visited, drop = F], 1, combine.probs)
5. floodPseudotimeCalc(object, start.cells = root.cells, minimum.cells.flooded = minimum.cells.flooded, tm.flood = tm.flood, verbose.freq = verbose.freq)
4. FUN(X[[i]], ...)
3. lapply(1:n, function(x) { if (verbose) print(paste("Starting flood number", x)) floodPseudotimeCalc(object, start.cells = root.cells, minimum.cells.flooded = minimum.cells.flooded, ...
2. as.data.frame(lapply(1:n, function(x) { if (verbose) print(paste("Starting flood number", x)) floodPseudotimeCalc(object, start.cells = root.cells, minimum.cells.flooded = minimum.cells.flooded, ...

  1. floodPseudotime(hffURD, root.cells = rootcells, n = 50, minimum.cells.flooded = 2, verbose = TRUE)

I thought maybe it was that the cell names somehow weren't present in the data, but
all(rootcells %in% colnames([email protected]))
returns TRUE.

Thank you!

@farrellja
Copy link
Owner

Hi @allisoncheney,

the floodPseudotime function looks at [email protected]. Does that slot have data with cell names as columns and genes as rows?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants