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

a little quirk (bug?) due to formatting in biom convert #43

Closed
devonorourke opened this issue Sep 28, 2018 · 3 comments
Closed

a little quirk (bug?) due to formatting in biom convert #43

devonorourke opened this issue Sep 28, 2018 · 3 comments

Comments

@devonorourke
Copy link

Sometimes I have use for .csv formats, others .tsv. Often when I'm working in AMPTK I use .csv formats because I find it easier to filter some things manually.
What I noticed is that if you set the output to .csv format in the amptk filter step, then run amptk taxonomy with that .csv file, you don't generate a .biom file.
It fails, apparently, because the biom convert argument doesn't recognize a comma-separated file! I converted it to a tab-delimited file and it worked just fine.

@devonorourke devonorourke changed the title a stupid little quirk (bug?) a little quirk (bug?) due to formatting in biom convert Sep 28, 2018
@devonorourke
Copy link
Author

First, please ignore if this was already fixed. I'm using amptk v1.1.4, so not the most up to date...

I wanted to add that in the next step, after the *.biom.tmp file is created and you append the metadata... In my system the default file name it was looking for to find the taxonomy table wasn't right:
The script looked for:

 biom add-metadata -i Mangan.biom.tmp -o Mangan.biom --observation-metadata-fp Mangan.qiime.taxonomy.txt -m mangan.mappingFile.txt --sc-separated taxonomy --output-as-json

But there isn't any Mangan.qiime.taxonomy.txt file. Instead, the default name is Mangan.otu_table.taxonomy.txt. Once I swapped that manually it worked fine.

Cheers!

@nextgenusfs
Copy link
Owner

nextgenusfs commented Sep 28, 2018

Looks like amptk taxonomy is expecting only tab delimited. So I guess I never saw this because I don't ever use csv -- I only added that as a request from Michelle.

@devonorourke
Copy link
Author

Michelle is such a trouble maker...
Easy fix anyhow. Thanks.

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

2 participants