extrDrugOBFP4: Calculate the FP4 Molecular Fingerprints

Description Usage Arguments Details Value Author(s) Examples

Description

Calculate the FP4 Molecular Fingerprints

Usage

1
extrDrugOBFP4(molecules, type = c("smile", "sdf"))

Arguments

molecules

R character string object containing the molecules. See the example section for details.

type

'smile' or 'sdf'.

Details

Calculate the 512 bit FP4 fingerprints provided by OpenBabel.

Value

A matrix. Each row represents one molecule, the columns represent the fingerprints.

Author(s)

Min-feng Zhu <wind2zhu@163.com>, Nan Xiao <http://r2s.name>

Examples

1
2
3
4
5
6
mol1 = 'C1CCC1CC(CN(C)(C))CC(=O)CC'  # one molecule SMILE in a vector
mol2 = c('CCC', 'CCN', 'CCN(C)(C)', 'c1ccccc1Cc1ccccc1',
         'C1CCC1CC(CN(C)(C))CC(=O)CC')  # multiple SMILEs in a vector

smifp0 = extrDrugOBFP4(mol1, type = 'smile')
smifp1 = extrDrugOBFP4(mol2, type = 'smile')

wind22zhu/BioMedR documentation built on Oct. 21, 2019, 12:51 p.m.