openmolecules.org

 
Home » DataWarrior » Cheminformatics » running a DW macro in batch (How to run a macro over multiple .dwar files to generate new .sdf files containing 3D conformers)
Re: running a DW macro in batch [message #2044 is a reply to message #2039] Wed, 06 December 2023 17:31 Go to previous messageGo to previous message
thomas is currently offline  thomas
Messages: 715
Registered: June 2014
Senior Member
Hi SM2020,

It seems that your macro has some syntax errors, e.g. '<task>' are task end tags and should always look be '</task>'. The second line should end with '>'.

A working macro should be the following:

<macro name="batch-conformers">
<task name="repeatNextTasks">
dir=#ask#
filetype=datawarrior
all=true
</task>
<task name="openFile">
fileName=$FILENAME
</task>
<task name="generateConformers">
neutralize=false
fileName=$FILENAME_conf.sdf
torsionSource=crystallDB
largestFragment=true
stereoIsomerLimit=16
minimize=mmff94+
algorithm=lowEnergyRandom
maxConformers=16
structureColumn=Structure
fileType=sdf2
</task>
<task name="closeWindow">
saveChanges=no
</task>
</macro>
 
Read Message
Read Message
Read Message icon14.gif
Previous Topic: Change default structure copy option
Next Topic: AllFragFp
Goto Forum:
  


Current Time: Sun Nov 24 07:41:59 CET 2024

Total time taken to generate the page: 0.03805 seconds