Monocle3/cicero - data loading in R
0
0
Entering edit mode
4.4 years ago

I am trying to run cicero on scATAC data, and while loading the data I am getting this error:

Error: CellDataSet 'phenoData' is class 'data.frame' but should be or extend 'AnnotatedDataFrame'

where the command was:

input_cds <- suppressWarnings(newCellDataSet(indata, + featureData = peakinfo, + phenoData = cellinfo, lowerDetectionLimit = 0.1, expressionFamily = VGAM::negbinomial.size()))

cellinfo- barcodes.tsv, peakinfo - peak.bed, indata - matrix.mtx

Please suggest what could be done.

atac sc ATAC R sequencing next-gen • 948 views
ADD COMMENT
0
Entering edit mode

Hi,

Did you run?

pd <- methods::new("AnnotatedDataFrame", data = cellinfo)

And then give this pd variable to the phenoData option. The new function will coerce the cellinfo data.frame to AnnotatedDataFrame class.

António

ADD REPLY

Login before adding your answer.

Traffic: 2420 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6