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

Weird issue with doing operations when ncells = nfeatures #127

Open
saketkc opened this issue Sep 25, 2023 · 0 comments
Open

Weird issue with doing operations when ncells = nfeatures #127

saketkc opened this issue Sep 25, 2023 · 0 comments

Comments

@saketkc
Copy link
Collaborator

saketkc commented Sep 25, 2023

Doing operations on layers with same number of features and cells results in missing feature overlap issue (seuratv5 branch):

set.seed(seed = 1)
dummyexpMat <- matrix(
  data = sample(x = c(1:50), size = 1e4, replace = TRUE),
  ncol = 100, nrow = 100
)
colnames(x = dummyexpMat) <- paste0("cell", seq(ncol(x = dummyexpMat)))
row.names(x = dummyexpMat) <- paste0("gene", seq(nrow(x = dummyexpMat)))

# Create Seurat object for testing
obj <- CreateSeuratObject(counts = as.sparse(dummyexpMat))
obj <- NormalizeData(object = obj, verbose = FALSE)
obj <- ScaleData(object = obj, verbose = FALSE)


Warning: No layers found matching search pattern provided 
Error: No feature overlap between existing object and new layer data
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

1 participant