Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make.dataset.biom metadata invalid format #3

Open
AngusBall opened this issue Jan 3, 2024 · 0 comments
Open

make.dataset.biom metadata invalid format #3

AngusBall opened this issue Jan 3, 2024 · 0 comments

Comments

@AngusBall
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant