You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thanks for making a very easy use package to move phyloseq objects into the biom format!
Unfortunately, I think I found some bugs when metadata is used
The problem:
I was able to successfully use make.dataset.biom(ps=ps, paths ect, writeFASTA=TRUE, rename=TRUE) to generate the biom v1 table but when i tried to import this file into Qiime2 it couldn't parse the metadata. Looking at the file text itself I found my data had been formatted in the following way:
"columns":[{"id":"S1P1PM","metadata":["Plantation","Mineral","Replicate","Site 1"]}....
where plantation, mineral, replicate and site are variables within specific columns of my physeq metadata
comparing this to the example "rich dense OTU table" within the biom docs, some problems become obvious.
e.g.:
"columns":[
{"id":"Sample1", "metadata":{
"BarcodeSequence":"CGCTTATCGAGA",
"LinkerPrimerSequence":"CATGCTGCCTCCCGTAGGAGT",
"BODY_SITE":"gut",
"Description":"human gut"}},
Firstly the list after metadata should be created with curly braces instead of square braces
Secondly each variable should be predicated by the variable type so that as an example with my data it would look like
"columns":[{"id":"S1P1PM","metadata":{"Location":"Plantation","Layer":"Mineral","Treatment":"Replicate","Site":"Site 1"}}....
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Hello
Firstly, thanks for making a very easy use package to move phyloseq objects into the biom format!
Unfortunately, I think I found some bugs when metadata is used
The problem:
I was able to successfully use make.dataset.biom(ps=ps, paths ect, writeFASTA=TRUE, rename=TRUE) to generate the biom v1 table but when i tried to import this file into Qiime2 it couldn't parse the metadata. Looking at the file text itself I found my data had been formatted in the following way:
"columns":[{"id":"S1P1PM","metadata":["Plantation","Mineral","Replicate","Site 1"]}....
where plantation, mineral, replicate and site are variables within specific columns of my physeq metadata
comparing this to the example "rich dense OTU table" within the biom docs, some problems become obvious.
e.g.:
"columns":[
{"id":"Sample1", "metadata":{
"BarcodeSequence":"CGCTTATCGAGA",
"LinkerPrimerSequence":"CATGCTGCCTCCCGTAGGAGT",
"BODY_SITE":"gut",
"Description":"human gut"}},
Firstly the list after metadata should be created with curly braces instead of square braces
Secondly each variable should be predicated by the variable type so that as an example with my data it would look like
"columns":[{"id":"S1P1PM","metadata":{"Location":"Plantation","Layer":"Mineral","Treatment":"Replicate","Site":"Site 1"}}....
Thanks in advance!
The text was updated successfully, but these errors were encountered: