Skip to content

SingleR - "sc_data" is missing #160

@nitinmahajan20

Description

@nitinmahajan20

I am having issue running the Single R , not sure why I am getting the error. Please help

seurat_integrated

An object of class Seurat
51866 features across 54453 samples within 3 assays
Active assay: RNA (24468 features, 0 variable features)
2 layers present: data, counts
2 other assays present: SCT, integrated
2 dimensional reductions calculated: pca, umap

ref <- celldex::HumanPrimaryCellAtlasData()
seurat_integrated_counts <- GetAssayData(seurat_integrated, layer = 'counts')

pred <- SingleR(test = seurat_integrated_counts,
        ref = ref,
        labels = ref$label.main)

pred

ERROR

Error in SingleR(test = seurat_integrated_counts, ref = ref, labels = ref$label.main) :  argument "sc_data" is missing, with no default

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