openmolecules.org

 
Home » DataWarrior » Functionality » Search for "any atom" in structure editor
Re: Search for "any atom" in structure editor [message #1671 is a reply to message #1666] Wed, 13 July 2022 22:30 Go to previous messageGo to previous message
thomas is currently offline  thomas
Messages: 684
Registered: June 2014
Senior Member
The key is to use the lasso tool. If you edit a substructure (as opposed to a molecule, which does not support query features), then you can select the lasso tool and double click an atom (or one of multiple selected atoms) to open the atom query feature dialog. Here you define your example cases as follows:
- "any atom": first checkbox in the dialog is 'Any atomic number'
- "either carbon or nitrogen": type 'N,C' in the 'Allowed Atoms' field
- "not a carbon": select 'Any atomic number' and type 'C' in 'Excluded Atoms' field

This works in all places that allow you to edit substructures, e.g. reaction in combinatorial enumeration, 2D-coordinate generation, etc.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Opening .CSV file
Next Topic: showing variable txt/values at "showMessage" macros
Goto Forum:
  


Current Time: Tue Jul 23 06:33:32 CEST 2024

Total time taken to generate the page: 0.03627 seconds