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"
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.155961Using 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"