fp_morgan | R Documentation |
Compute Morgan fingerprints (circular fingerprints).
fp_morgan(mols, radius = 2L, use_features = FALSE, explicit = FALSE)
mols |
A |
radius |
The radius parameter for Morgan fingerprints.
|
use_features |
Should we use the feature-based invariants,
similar to those used for the FCFP fingerprints? Defaults to |
explicit |
Return the fingerprints as a vector or matrix?
Default is |
mol <- parse_smiles("Cc1ccccc1")
mols <- read_smiles(tidychem_example("smi-multiple.smi"))
# ECFP4
fp_morgan(mol)
fp_morgan(mols)
# get fingerprints matrix
fp_morgan(mol, explicit = TRUE)
fp_morgan(mols, explicit = TRUE)
# FCFP2
fp_morgan(mol, radius = 1L, use_features = TRUE)
fp_morgan(mols, radius = 1L, use_features = TRUE)
# get fingerprints matrix
fp_morgan(mol, radius = 1L, use_features = TRUE, explicit = TRUE)
fp_morgan(mols, radius = 1L, use_features = TRUE, explicit = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.