-
Notifications
You must be signed in to change notification settings - Fork 5
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
base: devel
Are you sure you want to change the base?
Conversation
*get_cwltool_base_cmd(tmpdir), | ||
# '--singularity', | ||
workflow, | ||
"--gpus=all", |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
"La139" "--nucleus_markers", | ||
"Ir191" "--input_dir", |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed; thanks!
e7089a8
to
05737ca
Compare
No description provided.