Skip to content

Commit c30dd8c

Browse files
committed
Fixing qiime map parsing
1 parent 84beb81 commit c30dd8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

qiita_ware/processing_pipeline.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,15 @@ def _get_qiime_minimal_mapping(prep_template, out_dir):
3737
The paths to the qiime minimal mapping files
3838
"""
3939
from functools import partial
40+
from collections import defaultdict
4041
from os.path import join
4142
import pandas as pd
4243

4344
# The prep templates has a QIIME mapping file, get it
4445
qiime_map = pd.read_csv(prep_template.qiime_map_fp, sep='\t',
4546
keep_default_na=False, na_values=['unknown'],
46-
index_col=False)
47+
index_col=False,
48+
converters=defaultdict(lambda: str))
4749
qiime_map.set_index('#SampleID', inplace=True, drop=True)
4850

4951
# We use our own description to avoid potential processing problems

0 commit comments

Comments
 (0)