Aggregate By Taxonomy Error
1
0
Entering edit mode
nhuda6 • 0
@nhuda6-10792
Last seen 5.3 years ago

Hey,

I am getting trouble with aggregating my data. Please suggest me how to aggregate the data by a level say for example "genus". Please see the command and error message below.

==========

Command

==========

> MSOTrimG = aggTax(MSO, lvl="genus", out = "MRexperiment")

=============

Error message

=============

Error in [.data.frame(fData(obj), , lvl) : undefined columns selected

Regards,

Nazmul

metagenomeSeq • 529 views
0
Entering edit mode
@joseph-nathaniel-paulson-6442
Last seen 4.5 years ago
United States

Hi Nazmul,

What are the column names of the featureData slot?

colnames(fData(MSO))

You need to use one of those names, or alternatively a vector of your choosing of size nrow(MSO).