Skip to content

PepXMLFile writes pepXML that does not validate against its own schema #10345

Closed

Description

@ManasBagul23

Validating every written reference file against the bundled schemas (share/OpenMS/SCHEMAS) shows all idXML, featureXML and trafoXML references validate — the five pepXML ones do not.

Cause 1 — empty cut on specificity: for identifications whose search parameters carry no enzyme (the default unknown_enzyme, which is what X! Tandem, Percolator and OpenNuXL results in the test data have), the writer emits <specificity cut="" sense="C"/>. pepXML requires at least one cleavage residue (cut has minLength 1 in the schema); specificity itself is optional, so for an unknown enzyme the element should be left out entirely instead of written empty.

Cause 2 — search_engine on the wrong element: the writer also puts a search_engine attribute on msms_run_summary, an attribute the schema only defines on search_summary. Real TPP-written files (e.g. the reader fixture PepXMLFile_test_store.pepxml) don't carry it on msms_run_summary either.

Real-data trigger: IDFileConverter -out_type pepXML for any identification run with an unrecognized/unknown enzyme.

Verified: validating the five written pepXML reference files against the schema fails before the fix (missing cut content, misplaced search_engine) and passes after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions