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

Attempts to seurat objects keep failing #2

Open
caojl1994 opened this issue Nov 14, 2024 · 1 comment
Open

Attempts to seurat objects keep failing #2

caojl1994 opened this issue Nov 14, 2024 · 1 comment

Comments

@caojl1994
Copy link

I made sure there were no NaN values several times. I would appreciate a note specific to the seurat object.

library(scCTS)
library(Seurat)
library(SingleCellExperiment)

##seurat to SingleCellExperiment
scRNAhub <- readRDS("BC_eptical_cell_ctc.rds")
sce_scRNAsub <- as.SingleCellExperiment(scRNAhub)

assayNames(sce_scRNAsub)

library(Matrix)
assay(sce_scRNAsub, "counts") <- as(assay(sce_scRNAsub, "counts"), "CsparseMatrix")
assay(sce_scRNAsub, "logcounts") <- as(assay(sce_scRNAsub, "logcounts"), "CsparseMatrix")

assay(sce_scRNAsub, "scaledata") <- as(assay(sce_scRNAsub, "scaledata"), "CsparseMatrix")

scRNAsub_res <- scCTS(sce_scRNAsub, subject.rep = 'GSM', celltype.rep = 'type',
numCores = 1, use.norm.rep = "counts")
── scCTS analysis ───────────────────────────────────────────────────────────────────────────────────────────────────────────
ℹ Start at 2024-11-14 14:33:22.155961
Using the assay "counts"
ℹ Using 1 workers for computation.
Re-organizing data info...
Finish data info re-organization.
EM estimation starts.
错误于{:
task 1 failed - "missing values and NaN's not allowed if 'na.rm' is FALSE"

@ToryDeng
Copy link
Owner

Could you please provide an example dataset that would allow me to reproduce the error?

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