Hi, I am trying to make a SingleCellExperiment object to store my single-cell data and make some filtering of cells with library sizes and number of expressed genes before doing analysis. But when I try to do:
sce <- SingleCellExperiment(list(counts=ExprFinal)) #My dataframe is called ExprFinal and it has only counts (endogenous, mit and ERCCs) and colnames (cells) and rownames (genes).
I obtain this message:
Error in seq_len(ncol(assay)) : argument must be coercible to non-negative integer In addition: Warning message: In seq_len(ncol(assay)) : first element used of 'length.out' argument
I do not know what it means. I have tried several things: to remove colnames and rownames from my dataframe, to convert my data to data.matrix... but it still does not work. Any help please? I think it has to be something related to the format of my data.