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

How set seurat3.0 object as the input? #150

Open
JFan-bio opened this issue Jan 13, 2020 · 3 comments
Open

How set seurat3.0 object as the input? #150

JFan-bio opened this issue Jan 13, 2020 · 3 comments

Comments

@JFan-bio
Copy link

I dont know how to set seurat object as the input.

@Eddylyf
Copy link

Eddylyf commented Feb 26, 2020

This is a broaden issue...

@mariafiruleva
Copy link

mariafiruleva commented Sep 5, 2020

I use this approach:

get_data <- function(obj, assay='RNA') {
  wrap_data <- wrap_expression(
    counts = t(obj@assays[[assay]]@counts),
    expression = t(obj@assays[[assay]]@data)
  )
  wrap_data <- add_grouping(
    wrap_data,
    obj$seurat_clusters
  )
  wrap_data
}
get_data(seurat_object)

@qinghuo111
Copy link

qinghuo111 commented Jul 14, 2021

When I use get_data, it shows an errors as following. I don't know how to address it.

Error in t(obj@assays[[assay]]@DaTa) : trying to get slot "assays" from an object of a basic class ("character") with no slots
5.t(obj@assays[[assay]]@DaTa)
4.rownames(expression)
3.rownames(expression) %||% rownames(counts)
2.wrap_expression(counts = t(obj@assays[[assay]]@CountS), expression = t(obj@assays[[assay]]@DaTa))
1.get_data("seurat_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

4 participants