Modifying SD tags

A program that can modify the SD tags on an SD molecule. The flags are: -remove, a list of property tags to be removed (non-matching tags are kept), -keep`, a list of property tags to be kept (non-matching tags are removed), -clearAll, all SD tags are removed. The program formats are limited to those that can have SD data i.e. SDF, OEB, and CSV.

Example

prompt > sdfmodprops.py -keep NAME ID_NUM -i dbase.sdf -o output.sdf
prompt > sdfmodprops.py -clearAll -i dbase.sdf -o output.oeb.gz

Code

Download code

sdfmodprops.py

See also