###############################################
Appendix: Additional Examples in Python
###############################################

These are full listings of programming examples that are excerpted or offered for download, elsewhere in this chapter.
See the :ref:`full list of examples in this chapter <fastrocs_part_examples>`.

..	_listing-CustomColorForceField_Snippet.py:

..  oe:source:: CustomColorForceField_Snippet.py
    :language:  python
    :refnum: 1
    :caption: Full listing of CustomColorForceField.py.

..	_listing-OEShapeDatabaseOptions_SetUserStarts.py:


..  oe:source:: OEShapeDatabaseOptions_SetUserStarts.py
    :language:  python
    :refnum: 2
    :caption: Full listing of OEShapeDatabaseOptions_SetUserStarts.py.

..	_listing-Tutorial1_InertialAtHeavyAtoms_Snippet.py:

..  oe:source:: Tutorial1_InertialAtHeavyAtoms_Snippet.py
    :language:  python
    :refnum: 3
    :caption: Full listing of Tutorial1_InertialAtHeavyAtoms_Snippet.py

..	_listing-ShapeDatabaseClientHistogram.py:

..  oe:source:: ShapeDatabaseClientHistogram.py
    :language:  python
    :refnum: 4
    :caption: Shape Database Client Histogram.

..	_listing-AsIsStartsExample.py:

..  oe:source:: AsIsStartsExample.py
    :language:  python
    :refnum: 6
    :caption: AsIs starts.


..	_listing-BestShapeOverlay.py:

..  oe:source:: BestShapeOverlay.py
    :language:  python
    :refnum: 7
    :caption: Database searching with queries.


..	_listing-BestShapeOverlayMultiConfQuery.py:

..  oe:source:: BestShapeOverlayMultiConfQuery.py
    :language:  python
    :refnum: 8
    :caption: Database searching with every conformer of every query.


..	_listing-BestTverskyShapeOverlay.py:

..  oe:source:: BestTverskyShapeOverlay.py
    :language:  python
    :refnum: 9
    :caption: Database searching with queries using Tversky similarity scoring.


..	_listing-ColorOptimizationExample.py:

..  oe:source:: ColorOptimizationExample.py
    :language:  python
    :refnum: 10
    :caption: Optimize over color overlap in addition to shape overlap.


..	_listing-CustomColorFFPrep.py:

..  oe:source:: CustomColorFFPrep.py
    :language:  python
    :refnum: 11
    :caption: Cache custom color atoms onto molecules.



..	_listing-ImplicitMillsDeanNoRingsExample.py:

..  oe:source:: ImplicitMillsDeanNoRingsExample.py
    :language:  python
    :refnum: 12
    :caption: Run FastROCS with the implicit Mills-Dean color force field, sans rings.


..	_listing-InertialAtHeavyAtomStartsExample.py:

..  oe:source:: InertialAtHeavyAtomStartsExample.py
    :language:  python
    :refnum: 13
    :caption: Database searching with queries using the inertial at heavy atoms starting orientation.


..	_listing-ROCSModeExample.py:

..  oe:source:: ROCSModeExample.py
    :language:  python
    :refnum: 14
    :caption: Turn on ROCS mode.


..	_listing-SphereExclusionClustering.py:

..  oe:source:: SphereExclusionClustering.py
    :language:  python
    :refnum: 15
    :caption: Cluster database into shape clusters.


..	_listing-ShapeDatabaseChunker.py:

..  oe:source:: ShapeDatabaseChunker.py
    :language:  python
    :refnum: 16
    :caption: Split database into chunks.

..	_listing-ShapeDatabaseClient.py:

..  oe:source:: ShapeDatabaseClient.py
    :language:  python
    :refnum: 17
    :caption: Send query to specified server.

..	_listing-ShapeDatabaseServer.py:

..  oe:source:: ShapeDatabaseServer.py
    :language:  python
    :refnum: 18
    :caption: Run the FastROCS server.


..	_listing-ShapeDatabaseIsLoaded.py:

..  oe:source:: ShapeDatabaseIsLoaded.py
    :language:  python
    :refnum: 19
    :caption: Returns whether the database has completed loading in server:port.


..	_listing-ShapeDatabaseOEThrowSetLevel.py:

..  oe:source:: ShapeDatabaseOEThrowSetLevel.py
    :language:  python
    :refnum: 20
    :caption: Adjust the verbosity of server running on server:port.


..	_listing-ShapeDatabasePrep.py:

..  oe:source:: ShapeDatabasePrep.py
    :language:  python
    :refnum: 21
    :caption: Prepare OEB file for faster load performance.


..	_listing-ShapeDatabaseProxy.py:

..  oe:source:: ShapeDatabaseProxy.py
    :language:  python
    :refnum: 22
    :caption: Tie multiple servers to appear as a single server.


..	_listing-ShapeDistanceMatrix.py:

..  oe:source:: ShapeDistanceMatrix.py
    :language:  python
    :refnum: 23
    :caption: Calculate distance between all molecules in database with themselves.



..	_listing-UserInertialStartsExample.py:

..  oe:source:: UserInertialStartsExample.py
    :language:  python
    :refnum: 24
    :caption: Database searching with queries using the user inertial starts orientation.



