Skip to content

Failed translation of Galaxy tool with ID containing a macro #119

@ddeepwell

Description

@ddeepwell

Translation of the Galaxy tool bcftools_reheader fails with error
RuntimeError: could not find wrapper for bcftools_reheader:b7be725976b6

It appears that this is caused by the tool id containing a macro which requires parsing. The bcftools_reheader id attribute is id="bcftools_@EXECUTABLE@"

The get_xml_id function in janis_core/ingestion/galaxy/utils/galaxy.py is not general enough to handle galaxy tools with macros in the id xml attribute. This leads to the get_xml_by_id function to incorrectly return None because the query_id does not match the "bcftools_@EXECUTABLE@" string.

This can be reproduced with

from janis_core.ingestion.galaxy.gxwrappers import fetch_xml
owner = "iuc"
repo = "bcftools_reheader"
revision = "b7be725976b6"
tool_id = "bcftools_reheader"
fetch_xml(owner, repo, revision, tool_id)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions