https://github.com/cbouy/molhighlighter
Multicolored substructure highlights made easy
Science Score: 13.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
○.zenodo.json file
-
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.8%) to scientific vocabulary
Keywords
Repository
Multicolored substructure highlights made easy
Basic Info
Statistics
- Stars: 9
- Watchers: 1
- Forks: 2
- Open Issues: 0
- Releases: 0
Topics
Metadata Files
README.md
MolHighlighter
Simple interface for generating multicolor substructure highlights. Can be paired with highlighting of text in a label.
🐍 Installation
Make sure RDKit (version >=2022.03.1) is installed, then:
python
pip install git+https://github.com/cbouy/molhighlighter.git
📜 Usage
Simple substructure highlight
```python from rdkit import Chem import molhighlighter as mh
mol = Chem.MolFromSmiles("C1=CC(=CC=C1N=NC2=CC=C(C=C2)Br)O")
highlights = [ mh.Smarts(mol, "c1ccccc1Br", fillring=True), mh.Smarts(mol, "N=N"), mh.Smarts(mol, "c1ccccc1O", fillring=True), ] mh.MolHighlighter(mol, highlights) ```
Substructure highlight paired with label highlighting
```python from rdkit import Chem import molhighlighter as mh
mol = Chem.MolFromSmiles("C1=CC(=CC=C1N=NC2=CC=C(C=C2)Br)O") name = "4-[(4-bromophenyl)diazenyl]phenol"
highlights = [ mh.Smarts(mol, "c1ccccc1Br", "bromophenyl", fillring=True), mh.Smarts(mol, "N=N", "diazenyl"), mh.Smarts(mol, "c1ccccc1O", "phenol", fillring=True), ] mh.MolHighlighter(mol, highlights, label=name) ```
See the demo notebook for more info
⚖ License
Unless otherwise noted, all files in this directory and all subdirectories are distributed under the Apache License, Version 2.0: ```text Copyright 2022 Cédric BOUYSSET
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
```
Owner
- Name: Cédric Bouysset
- Login: cbouy
- Kind: user
- Location: Oxford
- Company: Exscientia
- Website: cedric.bouysset.net
- Twitter: cedricbouysset
- Repositories: 19
- Profile: https://github.com/cbouy
PhD 👨🔬 Chemoinformatics, Molecular Modeling & Machine Learning
GitHub Events
Total
- Watch event: 2
- Fork event: 1
Last Year
- Watch event: 2
- Fork event: 1
Issues and Pull Requests
Last synced: over 1 year ago
All Time
- Total issues: 1
- Total pull requests: 0
- Average time to close issues: about 7 hours
- Average time to close pull requests: N/A
- Total issue authors: 1
- Total pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 1
- Pull requests: 0
- Average time to close issues: about 7 hours
- Average time to close pull requests: N/A
- Issue authors: 1
- Pull request authors: 0
- Average comments per issue: 1.0
- Average comments per pull request: 0
- Merged pull requests: 0
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- tlint101 (1)