diff --git a/qiita_db/metadata_template/prep_template.py b/qiita_db/metadata_template/prep_template.py index 9899cf729..7ae97858c 100644 --- a/qiita_db/metadata_template/prep_template.py +++ b/qiita_db/metadata_template/prep_template.py @@ -815,6 +815,9 @@ def _get_predecessors(workflow, node): pred.append(data) return pred + # this is only helpful for when there are no _get_predecessors + return pred + # Note: we are going to use the final BIOMs to figure out which # processing is missing from the back/end to the front, as this # will prevent generating unnecessary steps (AKA already provided @@ -937,6 +940,8 @@ def _get_predecessors(workflow, node): if set(merging_schemes[info]) >= set(cxns): init_artifacts = merging_schemes[info] break + if not predecessors: + pnode = node if init_artifacts is None: pdp = pnode.default_parameter pdp_cmd = pdp.command