Skip to content

Commit

Permalink
fix: handle NA values correctly in meta compare pathways (#134)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Bug Fixes**
	- Improved handling of missing values when reading CSV files.

- **Documentation**
	- Clarified the interpretation of null values in data processing.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Co-authored-by: Addimator <adpri100@hhu.de>
  • Loading branch information
fxwiegand and Addimator authored Dec 18, 2024
1 parent b6cfc3c commit 71778df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions workflow/scripts/compare_pathways.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

sys.stderr = open(snakemake.log[0], "w")

diffexp_x = pl.read_csv(snakemake.input[0], separator="\t").lazy()
diffexp_y = pl.read_csv(snakemake.input[1], separator="\t").lazy()
diffexp_x = pl.read_csv(snakemake.input[0], separator="\t", null_values="NA").lazy()
diffexp_y = pl.read_csv(snakemake.input[1], separator="\t", null_values="NA").lazy()
label_x = list(snakemake.params.labels)[0]
label_y = list(snakemake.params.labels)[1]

Expand Down

0 comments on commit 71778df

Please sign in to comment.