I'm attempting to run Tax4Fun to predict functional capabilities from 16S data. As the analysis up to this point was carried out in Mothur, I could not use biom as an input (incompatibility between biom versions, which I knew about beforehand).
I converted my mothur biom file to a tsv file as follows:
biom convert -i *biom -o otu_table.txt --header-key taxonomy --table-type "OTU table" --to-tsv
The otu_table.txt file was then used with Tax4Fun:
data<-importQIIMEData("otu_table.txt")
folderReferenceData<- "/nobackup/shared/cgebm/r_packages/Tax4Fun/SILVA119/"
results <- Tax4Fun(data,folderReferenceData)
However I get the following error message:
Error in rownames<-
(*tmp*
, value = c("NC-1.S34", "NC-2.S48", "PC-1.S27", :
length of 'dimnames' [1] not equal to array extent
I've searched Google extensively but have had no luck in finding an a solution! The text file has the dimensions that I would expect and seems to be OK when being loaded into R.
All suggestions welcome!