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

Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...) : 'x' must be atomic / sctransform #180

Open
pstrangw opened this issue Jan 25, 2024 · 3 comments
Assignees

Comments

@pstrangw
Copy link

Hi,

When attempting to run sctransform in R I receive the following error:

Error in sort.int(x, na.last = na.last, decreasing = decreasing, ...) : 'x' must be atomic

Please could you help me troubleshoot this issue.

merged.seurat.object <- Seurat::SCTransform(merged.seurat.object)

This is a merged Seurat object composed of 10 layers.

Thanks for your help.

Best,
Patrick

@pstrangw
Copy link
Author

pstrangw commented Jan 25, 2024

A quick update to this. I can perform sctransform on the merged seurat object without issue if there is only 1 layer present. If the object is split into 10 layers based on 'Sample' identifier in the meta data then I receive the above error. Code below re joining layers and splitting object into layers.

#join layers
merged.seurat.object<- JoinLayers(merged.seurat.object,  assay = "RNA")
#split into 10 layers based on Sample identifier in metadata
merged.seurat.object[["RNA"]] <- split(merged.seurat.object[["RNA"]], f = merged.seurat.object$Sample)

Is there a useful way I can share the merged.seurat.object.RDS file? It is too large even zipped to attach here.

@saketkc
Copy link
Contributor

saketkc commented Jan 25, 2024

You can email them to me at schoudhary@nygenome.org

@pstrangw
Copy link
Author

Thanks Saket - I have emailed you the merged seurat file.

@saketkc saketkc self-assigned this Jan 26, 2024
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