Hello all. I am attempting to do functional assignment for my microbial samples. I have already clustered OTUs and done Taxonomic assignment. These are the last commands I used to create my main output files (i.e. my .shared and .cons.taxonomy files):
cluster.split(fasta=final.fasta, count=final.count_table, taxonomy=final.taxonomy, taxlevel=4, cutoff=0.03); make.shared(list=final.opti_mcc.list, count=final.count_table, label=0.03); classify.otu(list=final.opti_mcc.list, count=final.count_table, taxonomy=final.taxonomy, label=0.03
I want to use FAPROTAX, which says:
Input OTU/taxon tables can either be in classical format (e.g. with tab-separated columns, one column per sample and one row per OTU), or in the recently published BIOM format (JSON or HDF5 variants)
Since mothur doesnāt output files in the classical format, Iām attempting to convert my file into .biom using the make.biom command.
Here is what I code into mothur (using a supercomputer on campus):
mothur "#set.dir(input=/projects/cas010/bartz/16S_Files, output=/projects/cas010/bartz/16S_Files/biom);
make.biom(inputdir=/projects/cas010/bartz, shared=final.opti_mcc.shared, constaxonomy=final.opti_mcc.0.03.cons.taxonomy)"
or, Iāve also tried:
mothur "#set.dir(input=/projects/cas010/bartz/16S_Files, output=/projects/cas010/bartz/16S_Files/biom2);
make.biom(inputdir=/projects/cas010/bartz/16S_Files, shared=final.opti_mcc.shared, label=0.03, reftaxonomy=trainset9_032012.pds.tax, constaxonomy=final.opti_mcc.0.03.cons.taxonomy)"
Both of these run very quickly and give me the same output. Although Iām not sure what a .biom file is supposed to look like exactly, I think this output .biom file looks strange. Here is the beginning of the file, opened in TextEdit, for example:
I canāt use this table in the FAPROTAX protocol. I canāt read this into R using read_biom in the ābiomformatā package. And I canāt get a summary using summarize-table in the terminal. It runs a while and in the end says KeyError: āUnable to open object (object āgroup-metadataā doesnāt exist)ā
What am I doing wrong here? Any advice is much appreciated! Thank you. If you need any more details please let me know.