Skip to content

Commit 13c7fbd

Browse files
committed
Merge pull request #687 from antgonza/analysis-is-broken
fixing broken meta-analysis
2 parents 10e0687 + 97d1455 commit 13c7fbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

qiita_db/analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from qiita_core.exceptions import IncompetentQiitaDeveloperError
2828
from .sql_connection import SQLConnectionHandler
2929
from .base import QiitaStatusObject
30-
from .data import ProcessedData
30+
from .data import ProcessedData, RawData
3131
from .study import Study
3232
from .exceptions import QiitaDBStatusError # QiitaDBNotImplementedError
3333
from .util import (convert_to_id, get_work_base_dir,
@@ -670,7 +670,7 @@ def _build_mapping_file(self, samples, conn_handler=None):
670670
# you can have multiple different prep templates but we are only
671671
# using the one for 16S i. e. the last one ... sorry ;l
672672
# see issue https://github.com/biocore/qiita/issues/465
673-
prep_template_id = s.raw_data()[0]
673+
prep_template_id = RawData(s.raw_data()[0]).prep_templates[0]
674674

675675
if study_id in all_studies:
676676
# samples already added by other processed data file

0 commit comments

Comments
 (0)