Skip to content

Molecule signature - #8252

Open
Anthony96pi wants to merge 36 commits into
galaxyproject:mainfrom
Anthony96pi:molecule-signature
Open

Anthony96pi wants to merge 36 commits into
galaxyproject:mainfrom
Anthony96pi:molecule-signature

Conversation

@Anthony96pi

@Anthony96pi Anthony96pi commented Jul 30, 2026 •

Copy link
Copy Markdown

FOR CONTRIBUTOR:

  • I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • Use of AI
    • The contribution is mostly AI generated
    • The contribution has been assisted by AI
  • License permits unrestricted use (educational + commercial)
  • This PR adds a new tool or tool collection
  • This PR updates an existing tool or tool collection
  • This PR does something else (explain below)

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-review label if the PR is not a draft, all review
threads are resolved, and all CI checks have passed.

@bernt-matthias bernt-matthias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some first comments

Comment thread tools/molecule-signature/.shed.yml Resolved
@Anthony96pi

Anthony96pi commented Sep 15, 2026 •

Copy link
Copy Markdown
Author

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:
ModuleNotFoundError: No module named 'molsig'
We haven't made any recent changes to the molecule-signature package itself. Is it possible this is coming from a biocontainers issue rather than from our changes?
molecule-signature is only published on conda-forge, not on bioconda.

@github-project-automation github-project-automation Bot moved this from Triage/Discuss to Blocked / Not Planned in Galaxy Tool Developers SIG Board Sep 15, 2026
@Anthony96pi Anthony96pi reopened this Sep 15, 2026
@github-project-automation github-project-automation Bot moved this from Blocked / Not Planned to In progress in Galaxy Tool Developers SIG Board Sep 15, 2026
@Anthony96pi

Copy link
Copy Markdown
Author

It’s finally working again now.

@Anthony96pi

Copy link
Copy Markdown
Author

Hi @bernt-matthias
Just following up on this PR. I've replied to your comments and asked a few clarifying questions on the open threads, but I haven't heard back yet. Could you take a look when you have a moment?
Thanks a lot for your time!

@Anthony96pi
Anthony96pi requested a review from wm75 September 28, 2026 14:28
@Anthony96pi
Anthony96pi requested a review from wm75 October 6, 2026 09:11
@tools-iuc

tools-iuc Bot commented Nov 12, 2026

Copy link
Copy Markdown

💬 There are unresolved review comments on this PR. Please resolve them before requesting a review.

@Anthony96pi

Anthony96pi commented Nov 12, 2026 •

Copy link
Copy Markdown
Author

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!

@tools-iuc tools-iuc Bot moved this from In progress to Needs Review in Galaxy Tool Developers SIG Board Nov 12, 2026

@bernt-matthias bernt-matthias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@Anthony96pi

Copy link
Copy Markdown
Author

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, .shed.yml is now a suite with auto_tool_repositories, like dada2. Thanks!

@bernt-matthias bernt-matthias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Anthony96pi

@bernt-matthias
bernt-matthias enabled auto-merge (squash) November 16, 2026 09:21
@bernt-matthias

Copy link
Copy Markdown
Contributor

Can you check the box License permits unrestricted use

@bernt-matthias bernt-matthias left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a bio.tools entry for the software - add an xref for it. If not: maybe you can create one.

Comment thread tools/molecule-signature/.shed.yml Resolved
<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:" >

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@Anthony96pi

Anthony96pi commented Nov 25, 2026 •

Copy link
Copy Markdown
Author

Is there a bio.tools entry for the software - add an xref for it. If not: maybe you can create one.

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).
I don't think I can upload the tools to bio.tools because the developers are in charge there, but I can create a bio.tools entry for the labs, like this one: https://bio.tools/galaxy-synbiocad

@Anthony96pi

Copy link
Copy Markdown
Author

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.
@bernt-matthias

Copy link
Copy Markdown
Contributor

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

This branch has not been deployed

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

Labels

None yet

Projects

Status: Needs Review

Development

Successfully merging this pull request may close these issues.

3 participants