Which is the latest Toxtree version?

Toxtree 2.6.13 is the latest stable release. The latest development version is ToxTree 3.0.0-SNAPSHOT (Maven repository).


What is the format of Toxtree input files?

The list of supported file formats can be found in the user manual. A brief list of the most common formats follows:

  • filename.SDF is Structure Data Format
  • filename.CSV is comma delimited text file,with mandatory header row. A column,containing SMILES, should have title "SMILES". The number,titles and order of the columns are arbitrary. Example
    Acetic acid,64-19-7,CC(O)=O
  • filename.TXT is tab delimited text file. A column,containing SMILES, should have title "SMILES". The number,titles and order of the columns are arbitrary.


If I try to use a chemical identifier, I receive a message like "failed to retrieve from remote server"?. However, it works, if using chemical names.

Chemical identifiers are resolved via remote server (if enabled). The remote query may fail to retrieve an identifier for the following reasons:

  • The identifier is not found at the server.
  • Your computer is behind a firewall, blocking port 8080, and preventing the remote query.
Chemical names are parsed locally, and do not require remote query.
Please make sure to or newer. Due to server changes the older Toxtree versions will fail to connect to the server. This will not affect SMILES , InChI or IUPAC names.


How to specify daily intakes in a batch file,for computation of Kroes TTC?

The amount of daily intake (in microgram/day) can be specified as an additional column / SDfile field, with the name "DailyIntake". The following files are example of the proper formatting (the values are for illustration only):


How to run Toxtree predictions from (Java) code?

  • Java standalone example Toxtree and CDK dependencies are available via Maven repository. Toxtree code examples HERE.
  • import java.io.FileOutputStream;
    import java.io.InputStream;
    import java.io.OutputStream;
    import org.junit.Test;
    import org.openscience.cdk.interfaces.IAtomContainer;
    import org.openscience.cdk.io.iterator.IteratingMDLReader;
    import org.openscience.cdk.silent.SilentChemObjectBuilder;
    import toxTree.core.IDecisionResult;
    import toxTree.tree.cramer.CramerRules;
    public class ToxTreeAppTest {
            public static void main(String[] args) {
                    CramerRules rules = new CramerRules();
                    IDecisionResult result = rules.createDecisionResult();
                    InputStream in = new FileInputStream("myfile.sdf");
                    IteratingMDLReader reader =
                             new IteratingMDLReader(in,SilentChemObjectBuilder.getInstance());
                    OutputStream out = new FileOutputStream("result.sdf");
                    MDLWriter writer = new MDLWriter(out);
                    while (reader.hasNext()) {
                            IAtomContainer molecule = ((IAtomContainer)reader.next());
                            //Just print the result
                            for (String resultProperty : result.getResultPropertyNames())
                            //save all properties (both read from the input file and calculated)
  • OpenTox API web services.

    Toxtree modules are avalable as OpenTox REST API web services. The example assumes your dataset is uploaded to an OpenTox dataset service.
    curl -X POST -d "dataset_uri=http://apps.ideaconsult.net:8080/ambit2/dataset/{yourdataset}" \
    The dataset service accepts common chemical data formats for upload via HTTP POST calls. More OpenTox API examples.


How to launch Toxtree from the command line, with options to define input, optuput and selecting the decision tree?

Available since Toxtree 2.6.13.

  • Use the command line opion -n (--noui) and the following options
    java -jar Toxtree-2.6.13.jar -h
     -h,--help                This help
     -i,--input file_name     Input file
     -m,--module class_name        Class name
     -n,--noui                Command line only, do not start UI
     -o,--output file_name    Output file


Back to top

Version: 2.6.13. Last Published: 2015-03-22.

Reflow Maven skin by Andrius Velykis.