Hi guys,
I was wondering if anyone can help me. I am trying to filter some samples from my OTU_table.biom file. The error it is throwing back at me is: ValueError: '\xe2\x80\x98Type' is not in list
(My mapping file is attached to this post)
Here is the full command and error message:
MacQIIME MACGICIAN-GW:salt_metal_trials_August2016 $ filter_samples_from_otu_table.py -i pick_open_ref_otus/otu_table_mc2_w_tax.biom -o remove_ext_blanks/otu_table_extractionblank_samples_only.biom -m MapFile1.txt -s ‘Type:blank’
Traceback (most recent call last):
File "/macqiime/anaconda/bin/filter_samples_from_otu_table.py", line 162, in <module>
main()
File "/macqiime/anaconda/bin/filter_samples_from_otu_table.py", line 121, in main
open(mapping_fp, 'U'), valid_states)
File "/macqiime/anaconda/lib/python2.7/site-packages/qiime/filter.py", line 106, in sample_ids_from_metadata_description
map_data, map_header, map_comments = parse_mapping_file(mapping_f)
File "/macqiime/anaconda/lib/python2.7/site-packages/qiime/parse.py", line 135, in parse_mapping_file
raise QiimeParseError("No header line was found in mapping file.")
qiime.parse.QiimeParseError: No header line was found in mapping file.
MacQIIME MACGICIAN-GW:salt_metal_trials_August2016 $ filter_samples_from_otu_table.py -i pick_open_ref_otus/otu_table_mc2_w_tax.biom -o remove_ext_blanks/otu_table_extractionblank_samples_only.biom -m MapFile.txt -s ‘Type:blank’
Traceback (most recent call last):
File "/macqiime/anaconda/bin/filter_samples_from_otu_table.py", line 162, in <module>
main()
File "/macqiime/anaconda/bin/filter_samples_from_otu_table.py", line 121, in main
open(mapping_fp, 'U'), valid_states)
File "/macqiime/anaconda/lib/python2.7/site-packages/qiime/filter.py", line 108, in sample_ids_from_metadata_description
sample_ids = get_sample_ids(map_data, map_header, valid_states)
File "/macqiime/anaconda/lib/python2.7/site-packages/qiime/filter.py", line 131, in get_sample_ids
name_to_col = dict([(s, map_header.index(s)) for s in states])
ValueError: '\xe2\x80\x98Type' is not in list
I have tried validate_mapping_file.py and it says there are no errors.
validate_mapping_file.py -m MapFile.txt -o check_id_map_output
No errors or warnings were found in mapping file.
I have also tried opening the map as an excel file and re-saving as tab delimited text file, and I have also opened it, checked it, and saved it in TextWrangler (UTF-8). Still getting the same error that it cant find my header in the mapping file.
Any suggestions?
Thanks
Jen