# Metadata download via redbiom for qiita study 10317

**URL:** https://forum.qiime2.org/t/metadata-download-via-redbiom-for-qiita-study-10317/14972
**Category:** Other Bioinformatics Tools
**Created:** [May 16, 2020, 9:50pm UTC](https://forum.qiime2.org/t/metadata-download-via-redbiom-for-qiita-study-10317/14972 "2020-05-16T21:50:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![saryal2](https://forum.qiime2.org/letter_avatar_proxy/v4/letter/s/3da27b/32.png) [@saryal2](https://forum.qiime2.org/u/saryal2)
#### Post date: [May 16, 2020, 9:50pm UTC](https://forum.qiime2.org/t/metadata-download-via-redbiom-for-qiita-study-10317/14972/1 "2020-05-16T21:50:34Z")

</div>

Hello Sir/Madam,

I am having trouble while downloading the metadata file using redbiom. I want to download alcohol \_frequency data which has 5 sub-sets “Never, Daily, Regularly, Occasionally, Rarely” and I used:

redbiom search metadata "where qiita\_study\_id == 10317 and (alcohol\_frequency == ‘Never’ or alcohol\_frequency == 'Rarely (a few times/month)’ or alcohol\_frequency == 'Occasionally (1-2 times/week)’ or alcohol\_frequency == ‘Daily’ or alcohol\_frequency == 'Regularly (3-5 times/week)’ )" | redbiom fetch sample-metadata --context Deblur-Illumina-16S-V4-150nt-780653 --output metadata\_alcohol.txt

This code gave an error message and said that it cannot take more than two comparisons. To cross check, I deleted the rest and only used:

redbiom search metadata "where qiita\_study\_id == 10317 and (alcohol\_frequency == ‘Never’ or alcohol\_frequency == 'Rarely (a few times/month)’)” | redbiom fetch sample-metadata --context Deblur-Illumina-16S-V4-150nt-780653 --output metadata\_alcohol.txt

This worked and started to download the metadata. But didn’t work for the top code where I have more features.

How can I fix this code so that I will be able to download the metadata containing the above mentioned features for alcohol\_frequency?

Please let me know.

Regards

Sachin Aryal
