I am working on SingleCellExperiment and am preparing the metadata to colData for DESeq2 analysis.
DataFrame with 41082 rows and 30 columns
orig.ident nCount_RNA nFeature_RNA
stim1_ 14762 4657
My question is how to change the "orig.ident" from into ?
Script as below
Create single cell experiment object
sce <- SingleCellExperiment(assays = list(counts = counts),
colData = metadata)
colData(sce)$orig.ident <- factor(colData@orig.ident)
Can someone please help me with the last commend?
my console error message:
Error in factor(colData@seq_folder) :
no slot of name "orig.ident" for this object of class "standardGeneric"