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

BunchVersion object has no attribute get #298

Open
alexiswl opened this issue Nov 14, 2024 · 0 comments
Open

BunchVersion object has no attribute get #298

alexiswl opened this issue Nov 14, 2024 · 0 comments

Comments

@alexiswl
Copy link
Member

cwl-ica icav2-add-bunch --tenant-name umccr-prod --bunch-name dragen_somatic_with_germline_pipeline_with_validation_data__4_2_4 --bunch-version v9_r3_with_ora --bunch-version-description 'insert version description here' --workflow-path workflows/dragen-somatic-with-germline-pipeline/4.2.4/dragen-somatic-with-germline-pipeline__4.2.4.cwl --pipeline-project-name pipelines --dataset dragen_hash_table_hg38_alt_masked_v9_r3_linear_cnv_hla_rna \
--dataset wgs_validation_fastq__cups_pair_8 \
--dataset wgs_validation_fastq__2016_249_17_MH_P033 \
--dataset wgs_validation_fastq__2016_249_18_WH_P025 \
--dataset wgs_validation_fastq__B_ALL_Case_10 \
--dataset wgs_validation_fastq_Diploid_Never_Responder \
--dataset wgs_validation_fastq_SBJ00303 \
--dataset wgs_validation_fastq_SEQC50 \
--dataset wgs_validation_fastq_SFRC01073 --dataset ora_reference_v2 --project development --category wgs

Gives

Traceback (most recent call last):
  File "/home/alexiswl/miniconda3/envs/cwl-ica/bin/cwl-ica", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/utils/cli.py", line 416, in main
    _dispatch()
    ~~~~~~~~~^^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/utils/cli.py", line 405, in _dispatch
    command_obj = command_to_call(command_argv)
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/subcommands/v2/icav2_add_bunch.py", line 185, in __init__
    self.check_args()
    ~~~~~~~~~~~~~~~^^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/subcommands/v2/icav2_add_bunch.py", line 434, in check_args
    self.bunch.generate_bunch_version(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        version=self.bunch_version,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
        version_description=self.bunch_version_description,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        datasets=self.dataset_list
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/classes/icav2_bunch_classes.py", line 645, in generate_bunch_version
    new_bunch_version = BunchVersion(
        parent_bunch=self,
    ...<3 lines>...
        datasets=datasets,
    )
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/classes/icav2_bunch_classes.py", line 721, in __init__
    self.confirm_unique()
    ~~~~~~~~~~~~~~~~~~~^^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/classes/icav2_bunch_classes.py", line 915, in confirm_unique
    existing_version_names = list(
        map(
    ...<2 lines>...
        )
    )
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/classes/icav2_bunch_classes.py", line 917, in <lambda>
    lambda x: x.get("version"),
              ^^^^^
AttributeError: 'BunchVersion' object has no attribute 'get'

Also contrary to docs

 cwl-ica icav2-add-bunch --tenant-name umccr-prod --bunch-name dragen_somatic_with_germline_pipeline_with_validation_data__4_2_4 --
bunch-version v9_r3_with_ora --bunch-version-description 'insert version description here' --dataset dragen_hash_table_hg38_alt_masked_v9_r3_linear_cnv_hla_rna \
--dataset wgs_validation_fastq__cups_pair_8 \
--dataset wgs_validation_fastq__2016_249_17_MH_P033 \
--dataset wgs_validation_fastq__2016_249_18_WH_P025 \
--dataset wgs_validation_fastq__B_ALL_Case_10 \
--dataset wgs_validation_fastq_Diploid_Never_Responder \
--dataset wgs_validation_fastq_SBJ00303 \
--dataset wgs_validation_fastq_SEQC50 \
--dataset wgs_validation_fastq_SFRC01073
2024-11-14 21:34:02,316 - ERROR    - icav2_add_bunch           - check_arg_in_input_yaml_and_cli          : LineNo. 230  - --pipeline-project-name not specified in the input yaml or on the CLI
Traceback (most recent call last):
  File "/home/alexiswl/miniconda3/envs/cwl-ica/bin/cwl-ica", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/utils/cli.py", line 416, in main
    _dispatch()
    ~~~~~~~~~^^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/utils/cli.py", line 405, in _dispatch
    command_obj = command_to_call(command_argv)
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/subcommands/v2/icav2_add_bunch.py", line 185, in __init__
    self.check_args()
    ~~~~~~~~~~~~~~~^^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/subcommands/v2/icav2_add_bunch.py", line 368, in check_args
    self.check_arg_in_input_yaml_and_cli(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
        "--pipeline-project-name",
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        arg_type=str
        ^^^^^^^^^^^^
    )
    ^
  File "/home/alexiswl/miniconda3/envs/cwl-ica/lib/python3.13/site-packages/cwl_ica/subcommands/v2/icav2_add_bunch.py", line 231, in check_arg_in_input_yaml_and_cli
    raise CheckArgumentError
cwl_ica.utils.errors.CheckArgumentError
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

No branches or pull requests

1 participant