Aggregate By Taxonomy Error
1
0
Entering edit mode
nhuda6 • 0
@nhuda6-10792
Last seen 8.5 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 • 1.2k views
ADD COMMENT
0
Entering edit mode
@joseph-nathaniel-paulson-6442
Last seen 7.7 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).

ADD COMMENT

Login before adding your answer.

Traffic: 680 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