Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 3D IMC segmentation #975

Open
wants to merge 6 commits into
base: devel
Choose a base branch
from
Open

Add 3D IMC segmentation #975

wants to merge 6 commits into from

Conversation

mruffalo
Copy link
Contributor

@mruffalo mruffalo commented Nov 8, 2024

No description provided.

@mruffalo mruffalo requested a review from jswelling as a code owner November 8, 2024 20:23
*get_cwltool_base_cmd(tmpdir),
# '--singularity',
workflow,
"--gpus=all",
Copy link
Collaborator

@sunset666 sunset666 Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the pipeline.cwl doesn't have gpus as an attribute.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct. GPU requirements apply to each individual CommandLineTool in a CWL workflow, not a Workflow that composes them together. The segmentation step has the GPU requirement: https://github.com/hubmapconsortium/imc-3d-segmentation/blob/main/steps/segmentation.cwl#L7

Copy link
Collaborator

@sunset666 sunset666 Nov 8, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but it needs to be declared so it can be passed along, currently it throws an error because of that.
usage: /hive/users/hive/hubmap/vm001-dev/ingest-pipeline/src/ingest-pipeline/airflow/dags/cwl/imc-3d-segmentation/pipeline.cwl
[-h] --cytoplasm_markers CYTOPLASM_MARKERS --input_dir INPUT_DIR
--membrane_markers MEMBRANE_MARKERS --nucleus_markers NUCLEUS_MARKERS
[--processes PROCESSES]
[job_order]
.../imc-3d-segmentation/pipeline.cwl: error: unrecognized arguments: --gpus=all

Example pipeline with working argument:
https://github.com/hubmapconsortium/mibi-pipeline/blob/7501938b53db117551ff02ca5597256d6795852e/pipeline.cwl#L8

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that was my mistake in making a copy of the MIBI DAG and then modifying appropriately -- I'd forgotten that this workflow doesn't accept a --gpus parameter at all. I'll remove it from the DAG as soon as I can.

Comment on lines 94 to 95
"La139" "--nucleus_markers",
"Ir191" "--input_dir",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably missing ',' after La139 and Ir191?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed; thanks!

@mruffalo mruffalo requested a review from sunset666 January 13, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants