Skip to content

Commit

Permalink
make it more reusable
Browse files Browse the repository at this point in the history
  • Loading branch information
leoschwarz committed Aug 7, 2024
1 parent b07d4c0 commit ba6d790
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/depiction_targeted_preproc/pipeline/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,12 @@ def setup_workdir(params: PipelineParameters, input_imzml_file: Path, input_pane


def copy_standardized_table(input_csv: Path, output_csv: Path):
# TODO this is a total hack for a quick setup
input_df = pl.read_csv(input_csv)
write_standardized_table(input_df, output_csv)


def write_standardized_table(input_df: pl.DataFrame, output_csv: Path) -> None:
# TODO this is a total hack for a quick setup
mapping = {}
for column in input_df.columns:
if column.lower() in ["marker", "label"]:
Expand Down

0 comments on commit ba6d790

Please sign in to comment.