A UNIX command that reads reactants from the mols.sdf
file, processes the reaction defined in the r.rxn
file and writes the resulting reaction molecules to the standard output in smiles format:
The same but returns only the second and the third products (note that 2,3
should be written without white space in between):
This example specifies the reaction with reactivity rule and the reactants on the command line, extracts the first product:
The same with an additional selectivity rule and tolerance:
A UNIX command that reads reactants from the mols.sdf
file, processes the reaction defined in the r.rxn
file and writes the product molecules in the file named products.sdf
to be created in the same directory:
The same with verbose output, returning only one product list, then displaying the result in MarvinView:
Assume that the reaction file r.rdf
contains a selectivity rule. Product lists are sorted by decreasing selectivity, all product lists are accepted (-n t
ignores selectivity tolerance). The result is displayed using MarvinView:
Note that such piping does not work in Windows.
Processes a reversed reaction and ignoring both reactivity and selectivity rules:
Performs a reaction on multiple reactants in combinatorial mode, returns the first two product lists sorted by selectivity, for each reactant pairs:
The same without preloading input molecules into memory (-e
, --file-storage
). This slows reaction processing and is necessary only if there are a lot of input molecules (thousands) in which case the JVM would run out of memory by holding all input molecules:
Create product IDs from reaction and reactant IDs. The reaction ID is R1
. Read the reactant IDs from the ID and CD_ID tags for the first and the second reactants, respectively, write the generated ID to the PID tag in the product SDF.