"Problem applying regular expression, wrong number of groups found" in tutorial "Collections: Rule Based Uploader"

Hello,
I am going through the tutorial “Collections: Rule Based Uploader” and have an error in “Apply Rules to Existing Collections” section 7.

The tutorial is : https://galaxyproject.github.io/training-material/topics/galaxy-data-manipulation/tutorials/upload-rules/tutorial.html

The error is pasted below.

I also notice that instead of “Set columns B, C, and A as List Identifier(s)” it says
Set columns B, , and A as List Identifier(s)". See screenshot:

 The server could not complete the request. Please contact the Galaxy Team if this error persists. Error executing tool: Problem applying regular expression, wrong number of groups found.

{
    "history_id": "3691d3bda2ca312c",
    "tool_id": "__APPLY_RULES__",
    "tool_version": "1.0.0",
    "inputs": {
        "input": {
            "values": [
                {
                    "id": "7b9eefcbe99c3537",
                    "hid": 1,
                    "name": "flat_count_list",
                    "src": "hdca",
                    "tags": []
                }
            ],
            "batch": false
        },
        "rules": {
            "rules": [
                {
                    "type": "add_column_metadata",
                    "value": "identifier0",
                    "error": null,
                    "warn": null
                },
                {
                    "type": "add_column_regex",
                    "target_column": 0,
                    "expression": "(.*)_(.*)_.*",
                    "group_count": "2",
                    "error": null,
                    "warn": null
                }
            ],
            "mapping": [
                {
                    "type": "list_identifiers",
                    "columns": [
                        1,
                        2,
                        0
                    ],
                    "editing": false
                }
            ]
        }
    }
}
1 Like

Hi @rbatorsky

The exact issue is reproducible. It may be linked to a server upgrade but some developer feedback is needed to confirm that.

The issue ticket is here: https://github.com/galaxyproject/usegalaxy-playbook/issues/282

Thanks for reporting the problem!

cc @mvdbeek @nate @jmchilton

1 Like