Repository navigation
Molecule signature - #8252
Molecule signature#8252Anthony96pi wants to merge 36 commits into
Conversation
=> Replace bundled alphabet .npz files with a tool data table
bernt-matthias
left a comment
There was a problem hiding this comment.
Some first comments
|
I'm having trouble understanding why the tests suddenly failed, since everything was working yesterday and only very few things changed since then (tool name, owner name, and macros indentation). To investigate, I re-tested locally on the commit that was working yesterday, and it now fails too, but only when using --biocontainers --no_dependency_resolution --no_conda_auto_init (like the tools-iuc CI does). Without these options, tests pass perfectly. The error is: |
|
It’s finally working again now. |
|
Hi @bernt-matthias |
|
💬 There are unresolved review comments on this PR. Please resolve them before requesting a review. |
|
please review @bernt-matthias I've addressed your comments on the input format and validation (see latest commit). CI is green. Could you take another look? Thanks! |
bernt-matthias
left a comment
There was a problem hiding this comment.
Sorry for the slow delay. One last thing. Could you adapt shed.yml to a suite? Like here https://github.com/galaxyproject/tools-iuc/blob/main/tools/dada2/.shed.yml. that is add suite and auto tools repository. Then we can more easily add other subcommands(s) later.
Done, |
bernt-matthias
left a comment
There was a problem hiding this comment.
Thanks @Anthony96pi
|
Can you check the box |
bernt-matthias
left a comment
There was a problem hiding this comment.
Is there a bio.tools entry for the software - add an xref for it. If not: maybe you can create one.
| <tool id="molsig" name="Molecule signature" version="0.1.0+galaxy0" python_template_version="3.5" profile="21.05"> | ||
| <macros> | ||
| <xml name="alphabet_selector_block"> | ||
| <param name="alphabet_selector" type="select" label="Alphabet:" > |
There was a problem hiding this comment.
Indentation is off here.
If we add a tool with a data table then we should maybe also add a data manager. The tool will be auto installed on usegalaxy.eu, without a data manager reference data would need to be installed manually be the admins. This will likely not happen without a data manager (and with one we could even automatize https://github.com/galaxyproject/idc/), i.e. usegalaxy would end up with a non-functional tool.
There was a problem hiding this comment.
We chose .loc files instead of a data manager on Björn's advice, since the alphabet files should not change. That's why we went with this setup.
I've never worked with data managers, but I understand the benefits they offer. I'll look into it to see if this is a feasible option that can be implemented quickly without having to start from scratch.
I don't have much time left for this project.
For your information, it's intended for a specific instance on usegalaxy.fr
I'm working on a project in collaboration with several partners who are developing generic tools in synthetic biology, and I'm uploading them to the project's labs (on usegalaxy.fr). |
Update test alphabet so the incl_input_alf=false test returns analogues
|
All done @bernt-matthias |
- Emit the alphabet file name relative to extra_files_path in the data manager JSON, as data_manager_conf.xml expects it to be moved from there into the managed data directory - Point tool_data_table_conf.xml.test at test-data/molsig_alphabets.loc - Log download progress and MD5 verification to stderr
The helper script now only downloads: it takes the output directory ($out_file.extra_files_path) and drops the verified .npz there. The data_manager_json describing the new molsig_alphabets row is built by a <configfile> in the tool wrapper and copied to $out_file, following the pattern used by the metaphlan, groot and mmseqs2 data managers in this repository. Bump the wrapper version to 0.0.2 and assert the full JSON row in tests.
Galaxy sanitizes text parameters by default, mapping [ ] @ # to __ob__ __cb__ __at__ __pd__ placeholders and replacing any character absent from both the valid set and the mapping table (backslash, %, ~) with "X". None of that is undone before the value reaches the tool, so a real Galaxy run handed the wrapper C__ob__C__at____at__H__cb__(N)C(=O)O for C[C@@h](N)C(=O)O and the job died in RDKit with "SMILES is not validated by rdkit". Any chiral molecule, charged species, triple bond, trans double bond or ring closure above 9 was affected, including two of the SMILES advertised in the tool help (ursolic acid, orlistat). Allow all printable characters through unchanged and drop (rather than substitute) anything else. The wrapper already validates with RDKit, so the sanitizer has nothing to protect here, and the value only travels through the inputs.json configfile. Add a regression test with a stereochemical SMILES that used to be rejected.
|
Thanks for all the work. Hope it was OK to push to your branch. This is good to go IMO. If you like you could add a creator tag: https://docs.galaxyproject.org/en/master/dev/schema.html#tool-creator |
FOR CONTRIBUTOR:
There are two labels that allow to ignore specific (false positive) tool linter errors:
skip-version-check: Use it if only a subset of the tools has been updated in a suite.skip-url-check: Use it if github CI sees 403 errors, but the URLs work.To request a review once your PR is ready, comment "please review" on the PR. This will
automatically apply the
ready-for-reviewlabel if the PR is not a draft, all reviewthreads are resolved, and all CI checks have passed.