extrDrugOBFP4: Calculate the FP4 Molecular Fingerprints

Description Usage Arguments Details Value Author(s) Examples

View source: R/482-extractDrugOBFP4.R

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')

BioMedR documentation built on Nov. 17, 2017, 10:08 a.m.