Skip to content

Commit

Permalink
add rules for mini plot
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Jun 7, 2024
1 parent 8d0600d commit eecdc9a
Showing 1 changed file with 38 additions and 1 deletion.
39 changes: 38 additions & 1 deletion src/depiction_targeted_preproc/workflow/experimental.smk
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,41 @@ rule exp_plot_compare_peak_density:
"python -m depiction_targeted_preproc.workflow.exp.plot_compare_peak_density"
" {input.tables_marker_distance}"
" --table-marker-distance-uncalib {input.table_marker_distance_uncalib}"
" --output-pdf {output.pdf}"
" --output-pdf {output.pdf}"


# for the poster:
rule qc_table_marker_distances_baseline_mini:
input:
imzml=multiext("{sample}/corrected.peaks",".imzML",".ibd"),
mass_list="{sample}/mass_list.visualization_mini.csv",
output:
table="{sample}/qc/table_marker_distances_baseline_mini.parquet"
shell:
"python -m depiction_targeted_preproc.workflow.qc.table_marker_distances"
" --imzml-peaks {input.imzml[0]} --mass-list {input.mass_list}"
" --output-table {output.table}"

rule qc_table_marker_distances_calib_mini:
input:
imzml_peaks="{sample}/calibrated.imzML",
mass_list="{sample}/mass_list.visualization_mini.csv",
output:
table="{sample}/qc/table_marker_distances_calib_mini.parquet"
shell:
"python -m depiction_targeted_preproc.workflow.qc.table_marker_distances"
" --imzml-peaks {input.imzml_peaks} --mass-list {input.mass_list}"
" --output-table {output.table}"

rule qc_plot_marker_presence_mini:
input:
table_marker_distances_baseline="{sample}/qc/table_marker_distances_baseline_mini.parquet",
table_marker_distances_calib="{sample}/qc/table_marker_distances_calib_mini.parquet"
output:
pdf="{sample}/qc/plot_marker_presence.pdf"
shell:
"python -m depiction_targeted_preproc.workflow.qc.plot_marker_presence"
" --table-marker-distances-baseline {input.table_marker_distances_baseline}"
" --table-marker-distances-calib {input.table_marker_distances_calib}"
" --output-pdf {output.pdf}"

0 comments on commit eecdc9a

Please sign in to comment.