-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f9df653
commit 90d6c22
Showing
5 changed files
with
45 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/depiction_targeted_preproc/workflow/exp/plot_compare_peak_density.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
from pathlib import Path | ||
from typing import Annotated | ||
|
||
import polars as pl | ||
import typer | ||
import vegafusion | ||
from typer import Option, Argument | ||
|
||
from depiction_targeted_preproc.workflow.qc.plot_peak_density import plot_density_combined | ||
|
||
|
||
def exp_plot_compare_peak_density( | ||
tables_marker_distances_calib: Annotated[list[Path], Argument()], | ||
output_pdf: Annotated[Path, Option()], | ||
) -> None: | ||
vegafusion.enable() | ||
|
||
table = pl.concat( | ||
[pl.read_parquet(path).with_columns(variant=pl.lit(path.parents[1].name)) for path in | ||
tables_marker_distances_calib]) | ||
|
||
plot_density_combined(df_peak_dist=table, out_pdf=output_pdf) | ||
|
||
|
||
if __name__ == "__main__": | ||
typer.run(exp_plot_compare_peak_density) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters