R/308-extractDrugAutocorrelationCharge.R

#' Calculate the Moreau-Broto Autocorrelation Descriptors using Partial Charges
#'
#' Calculate the Moreau-Broto Autocorrelation Descriptors using Partial Charges
#'
#' Calculates the ATS autocorrelation descriptor,
#' where the weight equal to the charges.
#'
#' @param molecules Parsed molucule object.
#' @param silent Logical. Whether the calculating process
#' should be shown or not, default is \code{TRUE}.
#'
#' @return A data frame, each row represents one of the molecules,
#' each column represents one feature.
#' This function returns 5 columns named
#' \code{ATSc1}, \code{ATSc2}, \code{ATSc3}, \code{ATSc4}, \code{ATSc5}.
#'
#' @export extractDrugAutocorrelationCharge
#'
#' @examples
#' smi = system.file('vignettedata/FDAMDD.smi', package = 'Rcpi')
#' \donttest{
#' mol = readMolFromSmi(smi, type = 'mol')
#' dat = extractDrugAutocorrelationCharge(mol)
#' head(dat)}

extractDrugAutocorrelationCharge = function (molecules, silent = TRUE) {
    evaluateDescriptor(molecules, type = 'AutocorrelationDescriptorCharge', silent = silent)
}
road2stat/Rcpi documentation built on July 9, 2023, 1:43 a.m.