Helper function for getCDs()
. Calculates chemical descriptors for a single
molecule, specified as
SMILES
string. This function should NOT be used directly. It is only exported so
getCDs()
can easily spawn background worker processes that are able to call
this function.
Value
A dataframe of dimension 1 x 241. The rowname is the input SMILES string. The colnames are the chemical descriptor features specified by CDFeatures.
Details
Chemical descriptors in getCDs()
are calculated individually for each
molecule. This is due to the inconsistent ordering of output dataframes when
a list of IAtomContainer
objects is provided to rcdk::eval.desc
. Although
the input SMILES are set as rownames, they don't match the original input
SMILES due to an unclear transformation, making mapping non-trivial.
Calculating descriptors molecule by molecule also enables parallelization in
getCDs()
.