Closed abretaud closed 3 weeks ago
Any clue on that? The tool seems to be quite used, we have several users complaining about it, and it doesnt look easy to debug for us :/
By the way, the problem did not happen 22.05
Ok, it comes from this line in the tool: https://github.com/workflow4metabolomics/tools-metabolomics/blob/master/tools/msnbase_readmsdata/msnbase_readmsdata.xml#L38
which triggers Tool toolshed.g2.bx.psu.edu/repos/lecorguille/msnbase_readmsdata/msnbase_readmsdata/2.16.1+galaxy0 output sampleMetadata: dataset output filter (input.extension not in ["mzxml","mzml","mzdata","netcdf"]) failed: 'DatasetCollectionElement' object has no attribute 'extension'
Tried replacing with .is_of_type
or .ext
, but they're not available on a DatasetCollectionElement
Found a workaround that seems to work, changing the tool filter to this:
<filter>(not input.hasattr(input, "dataset") and input.is_of_type("mzxml","mzml","mzdata","netcdf")) or (input.hasattr(input, "dataset") and input.dataset.is_of_type("mzxml","mzml","mzdata","netcdf"))</filter>
However I wonder if it's intended that we receive a DatasetCollectionElement object?
Hi @abretaud
Thanks for the investigations, now the readMSdata is working in workflows but the sampleMetadata output as datacollection for each input file have no sens. A full sampleMetadata.tsv file would be nice as output. We have to change the wrapper. @lecorguille @Lain-inrae what do you think ?
Yann
I think the original problem is fixed
Found a workaround that seems to work, changing the tool filter to this:
sorry, just noticed this in https://github.com/workflow4metabolomics/tools-metabolomics/pull/251. That sure doesn't look right
https://github.com/workflow4metabolomics/tools-metabolomics/blob/master/tools/msnbase_readmsdata/msnbase_readmsdata.xml#L38 doesn't work anymore, could you let me know where I can find this ?
(ideally the version that is broken, not the one with the workaround)
I think this link is the last version before the filter was removed: https://github.com/workflow4metabolomics/tools-metabolomics/blob/0caf5dc749efded521253db59a5446d939b8331a/tools/xcms/msnbase_readmsdata.xml#L38
@mvdbeek @abretaud @yguitton can this be closed?
Probably the collection wasn't finalized yet ? I think we did some work on that in the meantime. I'm not sure this is really resolved, but I guess we'll get a new issue if it re-appears.
Describe the bug
I'm getting this error while running the MSnbase readMSData tool, when run from a workflow on a list collection:
No error when running the tool outside of a workflow, or without a list collection
Galaxy Version and/or server at which you observed the bug Galaxy Version: 23.0 Commit: 6cde0781
To Reproduce Steps to reproduce the behavior:
Additional context It looks similar to https://github.com/galaxyproject/galaxy/issues/11510 but probably slightly different as this one has been fixed