Skip to content

Commit

Permalink
Merge pull request #103 from eastgenomics/DI-293_generate_bed_prefix
Browse files Browse the repository at this point in the history
add output_file_prefix string input to generate_bed stages (#103)
  • Loading branch information
mattgarner authored May 17, 2023
2 parents 9ee9ba5 + b9e036a commit 1e21343
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions cnvreports.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ def run_cnvreports(
"{}.clinical_indication".format(assay_config.cnv_generate_workbook_stage_id),
"{}.panel".format(assay_config.cnv_generate_bed_vep_stage_id),
"{}.panel".format(assay_config.cnv_generate_bed_excluded_stage_id),
"{}.panel".format(assay_config.cnv_generate_workbook_stage_id)
"{}.panel".format(assay_config.cnv_generate_workbook_stage_id),
"{}.output_file_prefix".format(assay_config.cnv_generate_bed_vep_stage_id),
"{}.output_file_prefix".format(assay_config.cnv_generate_bed_excluded_stage_id)
])
headers.append(tuple(new_headers))

Expand All @@ -283,7 +285,8 @@ def run_cnvreports(
# file properly
CIs = ";".join(CI_list)
panels = ";".join(panel_list)
line.extend([CIs, CIs, CIs, panels])
test_codes = "&&".join([CI.split("_")[0] for CI in CI_list])
line.extend([CIs, CIs, CIs, panels, test_codes, test_codes])
values.append(line)

job_report_dict["successful"] = len(rpt_values)
Expand Down
7 changes: 5 additions & 2 deletions reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,9 @@ def run_reports(
"{}.clinical_indication".format(assay_config.generate_workbook_stage_id),
"{}.panel".format(assay_config.generate_bed_vep_stage_id),
"{}.panel".format(assay_config.generate_bed_athena_stage_id),
"{}.panel".format(assay_config.generate_workbook_stage_id)
"{}.panel".format(assay_config.generate_workbook_stage_id),
"{}.output_file_prefix".format(assay_config.generate_bed_vep_stage_id),
"{}.output_file_prefix".format(assay_config.generate_bed_athena_stage_id)
])
headers.append(tuple(new_headers))

Expand All @@ -283,7 +285,8 @@ def run_reports(
# file properly
CIs = ";".join(CI_list)
panels = ";".join(panel_list)
line.extend([CIs, CIs, CIs, panels])
test_codes = "&&".join([CI.split("_")[0] for CI in CI_list])
line.extend([CIs, CIs, CIs, panels, test_codes, test_codes])
values.append(line)

job_report_dict["successful"] = len(rpt_values)
Expand Down

0 comments on commit 1e21343

Please sign in to comment.