knights-lab / BugBase

35 stars 12 forks source link

Bug if OTUs are not numeric #2

Closed michoug closed 6 years ago

michoug commented 6 years ago

Hi,

If inside the OTU table, the otus id are not numeric the software gives this error

[1] "Loading Inputs..."

Either 'predict only' or 'plot all' specified. All samples will be predicted.
[1] "16S copy number normalizing OTU table..."
[1] "Predicting phenotypes..."
Error in single.cell.predictions(trait_table, normalized_otus, test_trait,  : 
  Error: no OTU overlap between OTU table and trait table.
Execution halted

Best Greg

michoug commented 6 years ago

Hi, Sorry I realized that the otus should be named based on the greengenes database, whereas the number I got from mine were "random" as OTU_1, OTU_2... Any ideas how to resolve this issue, to base the comparison with the greengenes database not on the number but on the taxonomy (e.g kBacteria; pBacteroidetes; c__Flavobacteriia) Best Greg

TonyaWard commented 6 years ago

Hi Greg, At this time, BugBase can only use the GreenGenes OTU ID (16S) or the IMG OTU ID (Shotgun) to output predictions. If you'd like to use BugBase to predict phenotypes you'll have to use an OTU picker with the GreenGenes (16S) or IMG database (shotgun) using a closed reference approach. Thanks for using BugBase!