Skip to content

Commit

Permalink
Patch demultiplexing (#2933)(patch)
Browse files Browse the repository at this point in the history
### Fixed

- Dict keys updated as well
  • Loading branch information
Vince-janv authored Feb 12, 2024
1 parent 355c42e commit c4ee152
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions cg/apps/demultiplex/demultiplex_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ def __init__(self, config: dict, housekeeper_api: HousekeeperAPI, out_dir: Path
self.hk_api = housekeeper_api
self.slurm_account: str = config["demultiplex"]["slurm"]["account"]
self.mail: str = config["demultiplex"]["slurm"]["mail_user"]
self.flow_cells_dir: Path = Path(config["flow_cells_dir"])
self.demultiplexed_runs_dir: Path = out_dir or Path(config["demultiplexed_flow_cells_dir"])
self.flow_cells_dir: Path = Path(config["illumina_flow_cells_directory"])
self.demultiplexed_runs_dir: Path = out_dir or Path(
config["illumina_demultiplexed_runs_directory"]
)
self.environment: str = config.get("environment", "stage")
LOG.info(f"Set environment to {self.environment}")
self.dry_run: bool = False
Expand Down
8 changes: 4 additions & 4 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ def demultiplex_configs_for_demux(
) -> dict:
"""Return demultiplex configs."""
return {
"flow_cells_dir": tmp_illumina_flow_cells_demux_all_directory.as_posix(),
"demultiplexed_flow_cells_dir": tmp_empty_demultiplexed_runs_directory.as_posix(),
"illumina_flow_cells_directory": tmp_illumina_flow_cells_demux_all_directory.as_posix(),
"illumina_demultiplexed_runs_directory": tmp_empty_demultiplexed_runs_directory.as_posix(),
"demultiplex": {"slurm": {"account": "test", "mail_user": "[email protected]"}},
}

Expand All @@ -389,8 +389,8 @@ def demultiplex_configs(
) -> dict:
"""Return demultiplex configs."""
return {
"flow_cells_dir": tmp_illumina_flow_cells_directory.as_posix(),
"demultiplexed_flow_cells_dir": tmp_illumina_demultiplexed_flow_cells_directory.as_posix(),
"illumina_flow_cells_directory": tmp_illumina_flow_cells_directory.as_posix(),
"illumina_demultiplexed_runs_directory": tmp_illumina_demultiplexed_flow_cells_directory.as_posix(),
"demultiplex": {"slurm": {"account": "test", "mail_user": "[email protected]"}},
}

Expand Down

0 comments on commit c4ee152

Please sign in to comment.