Skip to content

Commit

Permalink
correctly create output qc folder
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jun 3, 2024
1 parent 8972125 commit c26afbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/depiction_targeted_preproc/example/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"qc/plot_marker_presence.pdf",
"qc/plot_peak_density_combined.pdf",
"qc/plot_peak_density_grouped.pdf",
"qc/plot_peak_counts.pdf",
"qc/plot_calibration_map.pdf",
],
PipelineArtifact.CALIB_IMAGES: ["images_default.ome.tiff", "images_default_norm.ome.tiff"],
Expand All @@ -25,7 +24,8 @@
PipelineArtifact.DEBUG: [
"qc/plot_marker_presence_cv.pdf",
"qc/plot_spectra_for_marker.pdf",
"qc/plot_sample_spectra_before_after.pdf"
"qc/plot_sample_spectra_before_after.pdf",
"qc/plot_peak_counts.pdf",
],
}

Expand Down Expand Up @@ -87,7 +87,7 @@ def export_results(
logger.info(f"Skipping export of {artifact}")
continue
for file in result_file_mapping[artifact]:
(output_dir / sample_name).mkdir(exist_ok=True, parents=True)
(output_dir / sample_name / file).parent.mkdir(exist_ok=True, parents=True)
shutil.copy(work_dir / sample_name / file, output_dir / sample_name / file)


Expand Down

0 comments on commit c26afbd

Please sign in to comment.