eiAdd | R Documentation |
Add additional compounds to and existing database
eiAdd(runId,additions,dir=".",format="sdf",conn=defaultConn(dir),
distance=getDefaultDist(descriptorType),
updateByName = FALSE,...)
runId |
The id number identifying a particular set of settings for a database. This is generally
the number returned by |
additions |
The compounds to add. This can be either a file in sdf format, or and SDFset object. |
dir |
The directory where the "data" directory lives. Defaults to the current directory. |
format |
The format of the data given in |
conn |
Database connection to use. |
distance |
The distance function to be used to compute the distance between two descriptors. A default function is provided for "ap" and "fp" descriptors. |
updateByName |
If true we make the assumption that all compounds, both in the existing database and the given dataset, have unique names. This function will then avoid re-adding existing, identical compounds, and will update existing compounds with a new definition if a new compound definition with an existing name is given. If false, we allow duplicate compound names to exist in the database, though not duplicate definitions. So identical compounds will not be re-added, but if a new version of an existing compound is added it will not update the existing one, it will add the modified one as a completely new compound with a new compound id. |
... |
Additional options passed to |
New Compounds can be added to an existing database, however, the reference compounds cannot be changed. This will also update the matrix file in the run/job directory with the new compounds.
Kevin Horan
eiMakeDb
eiPerformanceTest
eiQuery
library(snow)
r<- 50
d<- 40
#initialize
data(sdfsample)
dir=file.path(tempdir(),"add")
dir.create(dir)
eiInit(sdfsample[1:99],dir=dir,skipPriorities=TRUE)
#create compound db
runId=eiMakeDb(r,d,numSamples=20,dir=dir)
#find compounds similar two each query
eiAdd(runId,sdfsample[100],dir=dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.