Skip to content
Open
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
24f696d
Initial commit for the tools "Molecular Design by Reverse Engineering"
Anthony96pi Jun 1, 2026
6b3b36e
Initial commit for the tools "Molecular Design by Reverse Engineering"
Anthony96pi Jun 1, 2026
d288426
Add ECFP input
Anthony96pi Jul 30, 2026
dce534e
Resolve Lint Python scripts (3.11) errors
Anthony96pi Jul 30, 2026
268d3ba
Resolve Lint tool-list (3.11) errors
Anthony96pi Jul 30, 2026
21ebe5e
Resolve Lint tool-list (3.11) errors
Anthony96pi Jul 30, 2026
5438387
Resolve Lint tool-list (3.11) errors : add long_description
Anthony96pi Aug 4, 2026
56eac2e
Resolve Lint tool-list (3.11) errors : Check file sizes
Anthony96pi Sep 14, 2026
dac8ea0
iuc owner correction
Anthony96pi Sep 14, 2026
41b5188
tool name correction
Anthony96pi Sep 14, 2026
61d307d
indentation expand correction
Anthony96pi Sep 14, 2026
fc91af0
comment place order Reference alphabet files pathway
Anthony96pi Sep 28, 2026
9d84e9c
Remove display="radio" from select params for UI consistency
Anthony96pi Sep 29, 2026
90cc273
Remove ECFP vector input type, move preloaded examples to help section
Anthony96pi Oct 6, 2026
6143e96
Fix outdated conditional in test section
Anthony96pi Oct 6, 2026
cc9d8b6
feat(pipeline): optional alphabet update from input
Anthony96pi Oct 12, 2026
3925d81
Add SMILES input validation
Anthony96pi Oct 12, 2026
053e7e9
Resolve lint erreor
Anthony96pi Oct 12, 2026
a23935d
Resolve lint erreor
Anthony96pi Oct 12, 2026
587e966
Add version column to molsig_alphabets data table
Anthony96pi Oct 13, 2026
c450914
Fix .loc tab separators and table config indentation
Anthony96pi Oct 13, 2026
17a434d
Re-trigger Lint tool-list (Zenodo was unreachable)
Anthony96pi Oct 13, 2026
ac9b8f7
Re-trigger Lint tool-list (Zenodo was unreachable)
Anthony96pi Oct 16, 2026
41aa70b
Convert .shed.yml to suite with auto tool repositories
Anthony96pi Nov 16, 2026
9c71952
Re-trigger CI
Anthony96pi Nov 16, 2026
6ed68e7
molecule-signature: pin rdkit to 2026.03.2
Anthony96pi Nov 16, 2026
4f86b44
add xref to bio.tools
Anthony96pi Nov 27, 2026
326943a
Add data manager for molsig alphabets
Anthony96pi Nov 27, 2026
c46e7f7
Align shed name with folder name
Anthony96pi Nov 27, 2026
fbfbd47
Add version_command
Anthony96pi Nov 27, 2026
fb2818e
Pass inputs through a JSON configfile and a wrapper script.
Anthony96pi Nov 27, 2026
d88af0c
Convert tool help to Markdown
Anthony96pi Nov 27, 2026
8630c8e
Resolve Lint errors
Anthony96pi Nov 27, 2026
2fe4550
Fix data manager output path and test table conf
bernt-matthias Nov 27, 2026
11fbe1b
Generate data table row from a configfile in the fetcher wrapper
bernt-matthias Nov 27, 2026
56ee75f
molecule-signature: stop the parameter sanitizer from rewriting SMILES
bernt-matthias Nov 27, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions tools/molecule-signature/.shed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
categories:
- Synthetic Biology
description: De Novo Molecular Design by Reverse Engineering Fingerprints
name: molsig
Comment thread
bernt-matthias marked this conversation as resolved.
Resolved
owner: anthony96p
Comment thread
Anthony96pi marked this conversation as resolved.
Resolved
remote_repository_url: https://github.com/galaxyproject/tools-iuc/tree/main/tools/molecule-signature
homepage_url: https://github.com/brsynth/molecule-signature
long_description: The algorithm uses an alphabet of small molecular environments — chemical Lego bricks. It searches for combinations whose summed fingerprint exactly matches the input ECFP, formulated as a system of linear Diophantine equations. Once compatible fragment combinations are found, the method reconnects them into chemically valid molecular graphs.
194 changes: 194 additions & 0 deletions tools/molecule-signature/molecule-signature.xml

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions tools/molecule-signature/static/ECFPvector.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import sys

from molsig.enumerate_signature import enumerate_molecule_from_morgan
from molsig.SignatureAlphabet import load_alphabet

ecfp_text, alphabet_path, output_path = sys.argv[1], sys.argv[2], sys.argv[3]

for token in ("__ob__", "__cb__", "__oc__", "__cc__", "[", "]", "{", "}"):
ecfp_text = ecfp_text.replace(token, "")
ecfp_vector = [int(x) for x in ecfp_text.replace(",", " ").split()]

alphabet = load_alphabet(alphabet_path)
Ssig, Smol, Nsig, thresholds_reached, computational_times = enumerate_molecule_from_morgan(
ecfp_vector, alphabet
)

with open(output_path, "w") as fd:
fd.write("SMILES\n")
for smi in sorted(Smol):
fd.write(smi + "\n")
24 changes: 24 additions & 0 deletions tools/molecule-signature/static/update_alphabet.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import sys

from molsig.enumerate_utils import get_first_stereoisomer
from molsig.SignatureAlphabet import (load_alphabet, merge_alphabets, SignatureAlphabet)
from rdkit import Chem

RADIUS = 2
NBITS = 2048
USE_STEREO = True

alphabet_path = sys.argv[1]
output_path = sys.argv[2]
smiles_0 = sys.argv[3]

Alphabet = load_alphabet(alphabet_path)

mol = Chem.MolFromSmiles(smiles_0)
smiles = get_first_stereoisomer(smiles_0)

Alphabet_mol = SignatureAlphabet(radius=RADIUS, nBits=NBITS, use_stereo=USE_STEREO)
Alphabet_mol.fill([smiles], verbose=False)
Alphabet = merge_alphabets(Alphabet, Alphabet_mol)

Alphabet.save(output_path)
Binary file not shown.
5 changes: 5 additions & 0 deletions tools/molecule-signature/test-data/molsig_alphabets.loc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#value name path
metanetx MetaNetX (test) ${__HERE__}/mini_metanetx_alphabet.npz
emolecules eMolecules (test) ${__HERE__}/mini_metanetx_alphabet.npz
chembl ChEMBL (test) ${__HERE__}/mini_metanetx_alphabet.npz
drugbank DrugBank (test) ${__HERE__}/mini_metanetx_alphabet.npz
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SMILES
Oc1cccc2nc3ccccc2nc13
Oc1ccccc2nc3cccc3nc12
Oc1cccc2nc3ccccc3nc12
Oc1ccccc2nc3cccc2nc13
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SMILES
OC[C@H]1O[C@@H](O[C@H]2[C@H](O)[C@@H](O)[C@@H](O)[C@H](O)O[C@@H]2CO)[C@H](O)[C@H]1O
OC[C@H]1O[C@@H](O[C@H]2[C@H](O)[C@@H](O)[C@H](O)O[C@@H]2CO)[C@H](O)[C@@H](O)[C@H]1O
OC[C@H]1O[C@@H](O[C@H]2[C@H](O)[C@@H](O)[C@H](O)O[C@@H]2CO)[C@H](O)[C@H](O)[C@H]1O
OC[C@H]1O[C@@H](O[C@H]2[C@H](O)[C@H](O)[C@@H](O)[C@H](O)O[C@@H]2CO)[C@H](O)[C@H]1O
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Reference alphabet files for the molsig tool.
# Download the real .npz files from: https://zenodo.org/records/22691018
# Then edit the paths below to point to where you stored them on this instance.
#value name path
chembl ChEMBL alphabet /path/to/chembl_alphabet.npz
drugbank DrugBank alphabet /path/to/drugbank_alphabet.npz
emolecules eMolecules alphabet /path/to/emolecules_alphabet.npz
metanetx MetaNetX alphabet /path/to/metanetx_alphabet.npz
Comment thread
Anthony96pi marked this conversation as resolved.
Resolved
6 changes: 6 additions & 0 deletions tools/molecule-signature/tool_data_table_conf.xml.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<tables>
<table name="molsig_alphabets" comment_char="#">
<columns>value, name, path</columns>
Comment thread
Anthony96pi marked this conversation as resolved.
Resolved
<file path="tool-data/molsig_alphabets.loc" />
</table>
</tables>
6 changes: 6 additions & 0 deletions tools/molecule-signature/tool_data_table_conf.xml.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<tables>
<table name="molsig_alphabets" comment_char="#">
<columns>value, name, path</columns>
<file path="${__HERE__}/test-data/molsig_alphabets.loc" />
</table>
</tables>