Skip to content

Commit

Permalink
fix(tasks): include preprocessing reports directory in outputs
Browse files Browse the repository at this point in the history
Signed-off-by: Cameron Smith <[email protected]>
  • Loading branch information
cameronraysmith committed Aug 15, 2024
1 parent 4fed2dd commit aee79a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pyrovelocity/tasks/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def preprocess_dataset(
default_velocity_mode: str = "dynamical",
vector_field_basis: str = "umap",
cell_state: str = "clusters",
) -> Tuple[AnnData, Path]:
) -> Tuple[AnnData, Path, Path]:
"""
Preprocess data.
Expand Down Expand Up @@ -166,7 +166,7 @@ def preprocess_dataset(
and not overwrite
):
logger.info(f"{processed_path} exists")
return adata, Path(processed_path)
return adata, Path(processed_path), reports_processed_path
else:
logger.info(f"generating {processed_path} ...")

Expand Down Expand Up @@ -326,7 +326,7 @@ def preprocess_dataset(
processed_path, os.R_OK
):
logger.info(f"successfully generated {processed_path}")
return adata, Path(processed_path)
return adata, Path(processed_path), reports_processed_path
else:
logger.error(f"cannot find and read {processed_path}")

Expand Down

0 comments on commit aee79a1

Please sign in to comment.