Description Usage Arguments Details Value Author(s) References Examples
Calculate Drug Molecule Similarity Derived by Molecular Fingerprints
1 2 | calcDrugFPSim(fp1, fp2, fptype = c("compact", "complete"),
metric = c("tanimoto", "euclidean", "cosine", "dice", "hamming"))
|
fp1 |
The first molecule's fingerprints,
could be extracted by |
fp2 |
The second molecule's fingerprints. |
fptype |
The fingerprint type, must be one of |
metric |
The similarity metric,
one of |
This function calculate drug molecule fingerprints similarity.
Define a
as the features of object A, b
is the
features of object B, c
is the number of common features to A and B:
Tanimoto: aka Jaccard - c/a+b+c
Euclidean: √(a + b)
Dice: aka Sorensen, Czekanowski, Hodgkin-Richards - c/0.5[(a+c) + (b+c)]
Cosine: aka Ochiai, Carbo - c/√((a + c)(b + c))
Hamming: aka Manhattan, taxi-cab, city-block distance - (a + b)
The numeric similarity value.
Min-feng Zhu <wind2zhu@163.com>, Nan Xiao <http://r2s.name>
Gasteiger, Johann, and Thomas Engel, eds. Chemoinformatics. Wiley.com, 2006.
1 2 3 4 5 | mols = readMolFromSDF(system.file('compseq/tyrphostin.sdf', package = 'BioMedR'))
fp1 = extrDrugEstate(mols[[1]])
fp2 = extrDrugEstate(mols[[2]])
calcDrugFPSim(fp1, fp2, fptype = 'compact', metric = 'tanimoto')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.