Skip to content

Attempts to seurat objects keep failing #2

Description

@caojl1994

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions