Skip to content

Commit

Permalink
add trace ID assignment step to pipeline, #279
Browse files Browse the repository at this point in the history
  • Loading branch information
vreuter committed Nov 18, 2024
1 parent 15aa65b commit f91274d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
11 changes: 9 additions & 2 deletions bin/cli/run_processing_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,11 @@ def assign_trace_ids(rounds_config: ExtantFile, params_config: ExtantFile) -> Pa
"-cp",
str(LOOPTRACE_JAR_PATH),
f"{LOOPTRACE_JAVA_PACKAGE}.AssignTraceIds",
"--roundsConfig",
"--configuration",
str(rounds_config.path),
"-O",
"--roisFile",
str(H.nuclei_filtered_spots_file_path if H.spot_in_nuc else H.proximity_accepted_spots_file_path),
"--outputFile",
H.spots_for_voxels_definition_file,
]
logging.info(f"Running distance computation command: {' '.join(cmd_parts)}")
Expand Down Expand Up @@ -456,6 +458,11 @@ def stages(self) -> list[pypiper.Stage]:
func=run_spot_nucleus_filtration,
f_kwargs=rounds_params_images, # images are needed since H.image_lists is iterated in workflow.
),
pypiper.Stage(
name="trace_id_assignment",
func=assign_trace_ids,
f_kwargs={"rounds_config": self.rounds_config, "params_config": self.params_config},
),
pypiper.Stage(
name="regional_spots_visualisation_data_prep",
func=run_regional_spot_viewing_prep,
Expand Down
1 change: 1 addition & 0 deletions docs/pipeline-execution-control-and-rerun.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Below are the sequential pipeline stage names.
* spot_merge_execution
* spot_proximity_filtration
* spot_nucleus_filtration
* trace_id_assignment
* regional_spots_visualisation_data_prep
* spot_counts_visualisation__regional
* spot_bounding
Expand Down

0 comments on commit f91274d

Please sign in to comment.