Skip to content

Commit

Permalink
define rule to create visualization table with "tol" column
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Nov 14, 2024
1 parent 8e2146a commit f2b6f10
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/depiction_targeted_preproc/workflow/rules/rules_panel.smk
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ rule panel_standardized_full:
"--output-panel-path {output.csv}"


# TODO use this in the visualization steps everywhere
rule panel_visualize_full:
input:
csv="{sample}/panels/full.csv",
output:
csv="{sample}/panels/full_visualize.csv",
run:
import polars as pl

# TODO this absolutely needs to be configurable too
df = pl.read_csv(input.csv).with_columns(tol=pl.lit(0.25)).drop("type")
df.write_csv(output.csv)


rule panel_filter_calibration:
input:
csv="{sample}/panels/full.csv",
Expand Down

0 comments on commit f2b6f10

Please sign in to comment.