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

buildGraph error #347

Open
yangjie4546 opened this issue Aug 26, 2024 · 5 comments
Open

buildGraph error #347

yangjie4546 opened this issue Aug 26, 2024 · 5 comments

Comments

@yangjie4546
Copy link

yangjie4546 commented Aug 26, 2024

Describe the bug
When I run buildGraph function in R, with the imported data "pbmc_small", some error happened "Error in x[, seq_len(d)] : subscript out of bounds". Is miloR::buildGraph is not suitable for seurat v4?

Hope for your reply,thank you.

## your code

library(Seurat)
data("pbmc_small")
pbmc_small_sce <- as.SingleCellExperiment(pbmc_small)
pbmc_small_milo <- Milo(pbmc_small_sce)
miloR::buildGraph(pbmc_small_milo,k=10,d=30)

Full error traceback
Error in x[, seq_len(d)] : subscript out of bounds

@yangjie4546
Copy link
Author

Describe the bug When I run buildGraph function in R, with the imported data "pbmc_small", some error happened "Error in x[, seq_len(d)] : subscript out of bounds". Is miloR::buildGraph is not suitable for seurat v4?

Hope for your reply,thank you.

## your code

library(Seurat)
data("pbmc_small")
pbmc_small_sce <- as.SingleCellExperiment(pbmc_small)
pbmc_small_milo <- Milo(pbmc_small_sce)
miloR::buildGraph(pbmc_small_milo,k=10,d=30)

Full error traceback Error in x[, seq_len(d)] : subscript out of bounds

By the way, I don't want to update the seurat package totally because we have analysed the data based on V4 of seurat package.

@MarioniLab MarioniLab deleted a comment Aug 26, 2024
@MarioniLab MarioniLab deleted a comment Aug 26, 2024
@MikeDMorgan
Copy link
Member

Hi @yangjie4546 Please post (1) the full traceback, and (2) the output of your sessionInfo()

@yangjie4546
Copy link
Author

Hi @yangjie4546 Please post (1) the full traceback, and (2) the output of your sessionInfo()

##the full traceback:
library(Seurat)
data("pbmc_small")
pbmc_small_sce <- as.SingleCellExperiment(pbmc_small)
pbmc_small_milo <- Milo(pbmc_small_sce)
miloR::buildGraph(pbmc_small_milo,k=10,d=30)

##sessionLnfo()
Error in x[, seq_len(d)] : subscript out of bounds

@MikeDMorgan
Copy link
Member

Hi @yangjie4546 Please post (1) the full traceback, and (2) the output of your sessionInfo()

@yangjie4546
Copy link
Author

Hi I have solved the problem by amending the parameter including k and d.
Thanks!

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