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

Which Assay to use before converting Seurat object to other object classes? #4534

Closed
denvercal1234GitHub opened this issue May 25, 2021 · 1 comment

Comments

@denvercal1234GitHub
Copy link

denvercal1234GitHub commented May 25, 2021

Hi there,

Following up on issues #3883, #3764, and #3119, would anyone mind informing me when we need to set the Assay to 'RNA' versus 'SCT' in the conversion of Seurat object to SingleCellExperiment or Monocle object? My aim is to not have to do the data QC and regressing-out of cells and genes again.

  1. Is it correct that if I want to use SCTransform-ed data in another (non-Seurat) package, I should set assay=SCT when converting, and if I want to simply use the raw counts and log-normalized counts of my Seurat object in other pipeline, I will set assay=RNA?

  2. as.SingleCellExperiment() appears to transfer all assays and associated reduced dimensions whereas as.cell_data_set() for Monocle, this is not the case, but there are still counts and logcounts that get transferred which appear to be the same regardless if it were from RNA or SCT. For example, if I want to use UMAP generated by Seurat in Monocle, I should set assay = SCT during conversion, even though the actual counts and logcounts are the same?

Thank you for your help!

When I set assay=SCT and do as.SingleCellExperiment conversion:

Screen Shot 2021-05-25 at 3 29 40 PM

When I set assay=RNA and do as.SingleCellExperiment conversion:

Screen Shot 2021-05-25 at 3 33 57 PM

When I set assay=SCT and do as.cell_data_set() conversion:
Screen Shot 2021-05-25 at 3 36 02 PM

When I set assay=RNA and do as.cell_data_set() conversion:
Screen Shot 2021-05-25 at 3 44 43 PM

@denvercal1234GitHub denvercal1234GitHub changed the title Which Assay to set default before convert Seurat object to other object types? Which Assay to use before converting Seurat object to other object types? Jun 15, 2021
@denvercal1234GitHub denvercal1234GitHub changed the title Which Assay to use before converting Seurat object to other object types? Which Assay to use before converting Seurat object to other object classes? Jul 5, 2021
@torkencz
Copy link
Collaborator

Hi,
Issues with converting assays should now be fixed in the develop version of Seurat. Use instructions here to install (https://satijalab.org/seurat/articles/install.html#install-the-development-version-of-seurat-1). You can convert all of your assays and then switch between alternate experiments in the sce object.

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