smartsSearchOB: SMARTS Search OB

Description Usage Arguments Value Author(s) Examples

Description

Perform searches for SMARTS patterns using Open Babel (requires ChemmineOB package to be installed).

Usage

1
smartsSearchOB(sdfset, smartsPattern, uniqueMatches = TRUE)

Arguments

sdfset

An SDFset of the compounds you want to search

smartsPattern

The SMARTS pattern as a string.

uniqueMatches

If true, only return the number of distinct matches, otherwise return the number of all matches.

Value

Returns a vector of counts, one for each input compound.

Author(s)

Kevin Horan

Examples

1
2
3
4
5
6
7
	## Not run: 
		library(ChemmineOB)
		data(sdfsample)
		#look for rotable bonds
		rotableBonds = smartsSearchOB(sdfsample[1:5],"[!$(*#*)&!D1]-!@[!$(*#*)&!D1]",uniqueMatches=FALSE)
	
## End(Not run)


Search within the ChemmineR package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.