Skip to content

Commit

Permalink
Black, isort
Browse files Browse the repository at this point in the history
  • Loading branch information
pennycuda committed Aug 7, 2024
1 parent b772173 commit d855591
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 13 deletions.
11 changes: 7 additions & 4 deletions bin/convert_to_ometiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@ def create_original_channel_names_df(channelList: List[str]) -> pd.DataFrame:
].str.extract(cyc_ch_pattern)
og_ch_names_df["Cycle"] = pd.to_numeric(og_ch_names_df["Cycle"])
og_ch_names_df["Channel"] = pd.to_numeric(og_ch_names_df["Channel"])
og_ch_names_df["channel_id"] = "cycle" + og_ch_names_df["Cycle"].astype(str) + "_ch" + og_ch_names_df["Channel"].astype(str)
og_ch_names_df["channel_id"] = (
"cycle"
+ og_ch_names_df["Cycle"].astype(str)
+ "_ch"
+ og_ch_names_df["Channel"].astype(str)
)

return og_ch_names_df

Expand Down Expand Up @@ -379,9 +384,7 @@ def check_dir_is_empty(dir_path: Path):
antb_info = get_ch_info_from_antibodies_meta(df)
extractChannelNames = collect_expressions_extract_channels(extractFileList[0])
original_ch_names_df = create_original_channel_names_df(extractChannelNames)
updated_channel_names = replace_provider_ch_names_with_antb(
original_ch_names_df, antb_info
)
updated_channel_names = replace_provider_ch_names_with_antb(original_ch_names_df, antb_info)

# Create segmentation mask OME-TIFFs
if segmentationFileList:
Expand Down
2 changes: 1 addition & 1 deletion steps/illumination_first_stitching/best_focus.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class: CommandLineTool

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest
dockerOutputDirectory: "/output"

baseCommand: ["python", "/opt/best_focus/run_best_focus_selection.py"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ label: Collect dataset info for Cytokit

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest

baseCommand: ["python", "/opt/dataset_info/run_collection.py"]

Expand Down
2 changes: 1 addition & 1 deletion steps/illumination_first_stitching/create_yaml_config.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ label: Create Cytokit experiment config

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest

baseCommand: ["python", "/opt/create_cytokit_config.py"]

Expand Down
2 changes: 1 addition & 1 deletion steps/illumination_first_stitching/first_stitching.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class: CommandLineTool

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest
dockerOutputDirectory: "/output"

baseCommand: ["python", "/opt/codex_stitching/run_stitching.py"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class: CommandLineTool

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest
dockerOutputDirectory: "/output"

baseCommand: ["python", "/opt/illumination_correction/run_illumination_correction.py"]
Expand Down
2 changes: 1 addition & 1 deletion steps/illumination_first_stitching/slicing.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class: CommandLineTool

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest
dockerOutputDirectory: "/output"

baseCommand: ["python", "/opt/slicing/run_slicing.py"]
Expand Down
2 changes: 1 addition & 1 deletion steps/ometiff_second_stitching/background_subtraction.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class: CommandLineTool

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest
dockerOutputDirectory: "/output"

baseCommand: ["python", "/opt/background_subtraction/run_background_subtraction.py"]
Expand Down
2 changes: 1 addition & 1 deletion steps/ometiff_second_stitching/ome_tiff_creation.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ label: Create OME-TIFF versions of Cytokit segmentation and extract results

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest

baseCommand: ["python", "/opt/convert_to_ometiff.py"]

Expand Down
2 changes: 1 addition & 1 deletion steps/ometiff_second_stitching/second_stitching.cwl
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class: CommandLineTool

requirements:
DockerRequirement:
dockerPull: hubmap/codex-scripts
dockerPull: hubmap/codex-scripts:latest
dockerOutputDirectory: /output

baseCommand: ["python", "/opt/codex_stitching/secondary_stitcher/secondary_stitcher_runner.py"]
Expand Down

0 comments on commit d855591

Please sign in to comment.