Skip to content

IdXMLFile.load() raises "can not handle type" #495

@yueqixuan

Description

@yueqixuan

Describe the problem you encountered

An exception is raised when calling IdXMLFile().load() with a valid idXML file.

File pyopenms/_pyopenms_3.pyx:3368, in pyopenms._pyopenms_3.IdXMLFile.load()
Exception: can not handle type of ('resources/quantms/LFQ_PXD007683/a05191_consensus.idXML', [], [])

This error did not occur in versions ≤ 3.4.0.

To Reproduce
Steps to reproduce the behavior:

  1. Data
    pmultiqc/example/LFQ or pmultiqc/example/LFQ

  2. Code

from pyopenms import IdXMLFile

raw_id = "resources/quantms/LFQ_PXD007683/a05191_consensus.idXML"

protein_ids: list = []
peptide_ids: list = []
IdXMLFile().load(raw_id, protein_ids, peptide_ids)
  1. Error
---------------------------------------------------------------------------
Exception                                 Traceback (most recent call last)
Cell In[1], line 10
      8 protein_ids: list = []
      9 peptide_ids: list = []
---> 10 IdXMLFile().load(raw_id, protein_ids, peptide_ids)

File pyopenms/_pyopenms_3.pyx:3368, in pyopenms._pyopenms_3.IdXMLFile.load()

Exception: can not handle type of ('resources/quantms/LFQ_PXD007683/a05191_consensus.idXML', [], [])

Screenshots

Image

System information:

  • OS: Ubuntu
  • OS Version: 24.04.2 LTS
  • Python version: 3.11.0
  • pyopenms version: 3.5.0
  • How did you install pyopenms? Please cross a box with an X.
    • conda::bioconda: Specify your conda/mamba command and/or your environment with conda list.
    • conda::openms: Specify your conda/mamba command and/or your environment with conda list.
    • pip
    • nightly wheel
    • built from source

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions