###############################################################################################################
## Function reads in the structure data, processes/filters according to the intersection subset provided in the preprocess stage
##
## input:
## dname: currently must be set to "lincs"
## intersc: a vector of "character" or dataframe containting intersection info.
## output:
## structure data ("dataframe")
##
##
###############################################################################################################
StructureDataFlexible <- function(lincs.meta.subset)
{
## Matrix of SMILES (tanimoto distance)
## parse smiles
target.molcs <- rcdk::parse.smiles(as.character(lincs.meta.subset$canonical_smiles))
## assign fingerprints (extended connectivity fingerprint)
target.fps <- lapply(target.molcs, rcdk::get.fingerprint, type='extended')
names(target.fps) <- lincs.meta.subset$pert_iname
length(target.fps)
res <- target.fps
return(res)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.