ms.compute | R Documentation |
Computes chemical similarity between two (or more) input molecules.
ms.compute (molA, molB, format = 'smiles', standardize = TRUE, explicitH = FALSE,
sim.method = 'tanimoto', fp.type = 'extended', fp.mode = 'bit', fp.depth = 6,
fp.size = 1024, fpCached = FALSE)
ms.compute.sim.matrix (molA, format = 'smiles', standardize = TRUE, explicitH = FALSE,
sim.method = 'tanimoto', fp.type = 'extended', fp.mode = 'bit', fp.depth = 6,
fp.size = 1024, clearCache = TRUE)
ms.compute.PCA(molA, format = 'smiles', standardize = TRUE, explicitH = FALSE,
fp.type = 'extended', fp.mode = 'bit', fp.depth = 6, fp.size = 1024,
clearCache = TRUE)
molA |
input molecule in SMILES format or name (with path) of MDL MOL file. |
molB |
input molecule in SMILES format or name (with path) of MDL MOL file. |
format |
specifies format of input molecule(s). Molecule(s) can be provided in one of following formats: |
standardize |
suppresses all explicit hydrogen if set as |
explicitH |
converts all implicit hydrogen to explicit if set as |
sim.method |
similarity metric to be used to evaluate molecule similarity. Allowed types include: |
fp.type |
fingerprint type to use. Allowed types include: |
fp.mode |
fingerprint mode to be used. It can either be set to |
fp.depth |
search depth for fingerprint construction. This argument is ignored for |
fp.size |
length of the fingerprint bit string. This argument is ignored for |
fpCached |
boolean that enables fingerprint caching. It is set to |
clearCache |
boolean that resets the cache before (and after) processing molecule lists. It is set to |
See rs.compute
functions, for details for fingerprints and similarity matrices.
ms.compute
can use fingerprint caching by enabling fpCached
option. ms.compute
and ms.compute.sim.matrix
use same cache as rs.compute
and other functions in the package.
ms.compute.PCA
computes PCA based on the fingerprints using prcomp funtion.
Returns similarity value(s).
ms.compute |
returns a similarity value. |
ms.compute.sim.matrix |
returns a |
ms.compute.PCA |
returns prcomp object. |
Fingerprint cache stores fingerprints generated for a molecule index based on its SMILES. When caching is enabled, the fingerprint for a molecule, if present, is retrieved from the cache. The parameters pertaining to fingerprint generation are thus ignored. If the fingerprint for the molecule is not already cached, fingerprint based on the input parameters is generated and stored in the cache.
Varun Giri varungiri@gmail.com
rs.compute
, rs.clearCache
ms.compute('N', '[H]N([H])[H]', standardize = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.