Skip to content

Commit

Permalink
Update doc of clustering tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
SGenheden committed Apr 13, 2021
1 parent 6775d39 commit a7c52aa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ the `route_distances` package is now installed in editable mode.

## Usage

The tool will install the `calc_aizynthfinder_distances` that is used
The tool will install the `cluster_aizynth_output` that is used
to calculate distances and clusters for AiZynthFinder output

calc_aizynthfinder_distances --files finder_output1.hdf5 finder_output2.hdf5 --output finder_distances.hdf5 --nclusters 0
cluster_aizynth_output --files finder_output1.hdf5 finder_output2.hdf5 --output finder_distances.hdf5 --nclusters 0

This will perform TED calculations and add a column `distance_matrix` with the distances and column `cluster_labels` with the cluster labels for each route to the output file.

Expand Down
4 changes: 2 additions & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ There is one command line tool to process AiZynthFinder output:

.. code-block:: bash
calc_aizynthfinder_distances.py --files finder_output1.hdf5 finder_output2.hdf5 --output finder_distances.hdf5
cluster_aizynth_output --files finder_output1.hdf5 finder_output2.hdf5 --output finder_distances.hdf5
This will add a column to table in the merged ``hdf5`` file called ``distance_matrix`` with the tree edit distances, and
Expand All @@ -19,7 +19,7 @@ To cluster the routes as well add the ``--ncluster`` flag

.. code-block:: bash
calc_aizynthfinder_distances.py --files finder_output1.hdf5 finder_output2.hdf5 --output finder_distances.hdf5 --nclusters 0
cluster_aizynth_output --files finder_output1.hdf5 finder_output2.hdf5 --output finder_distances.hdf5 --nclusters 0
Giving 0 as the number of clusters will trigger automatic optimization of the number of clusters.
Two columns will be added to the table: ``cluster_labels`` and ``cluster_time`` holding the
Expand Down

0 comments on commit a7c52aa

Please sign in to comment.