Skip to content

Commit

Permalink
fix: get_output_files from ngs_mapping as reused in variant_export_ex…
Browse files Browse the repository at this point in the history
…ternal (#346)
  • Loading branch information
Nicolai-vKuegelgen authored Jan 16, 2023
1 parent f1355ae commit f4fcd7e
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions snappy_pipeline/workflows/ngs_mapping/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,10 +926,15 @@ def get_output_files(self, action):
paths_work = getattr(self, f"_get_output_files_{action}_work")()
yield from paths_work.items()
# Return list of paths to the links that will be created in ``output/``
yield "output_links", [
re.sub(r"^work/", "output/", work_path)
for work_path in chain(paths_work.values(), self.get_log_file(action).values())
]
paths_all = list(paths_work.values())
paths_logs = self.get_log_file(action)
if isinstance(paths_logs, dict):
paths_all += list(paths_logs.values())
elif isinstance(paths_logs, list):
paths_all += paths_logs
elif isinstance(paths_logs, str):
paths_all.append(paths_logs)
yield "output_links", [re.sub(r"^work/", "output/", work_path) for work_path in paths_all]

@dictify
def _get_output_files_run_work(self):
Expand Down

0 comments on commit f4fcd7e

Please sign in to comment.