extractDrugPetitjeanNumber: Descriptor that Calculates the Petitjean Number of a Molecule

Description Usage Arguments Details Value Author(s) Examples

View source: R/338-extractDrugPetitjeanNumber.R

Description

Descriptor that Calculates the Petitjean Number of a Molecule

Usage

1
extractDrugPetitjeanNumber(molecules, silent = TRUE)

Arguments

molecules

Parsed molucule object.

silent

Logical. Whether the calculating process should be shown or not, default is TRUE.

Details

This descriptor calculates the Petitjean number of a molecule. According to the Petitjean definition, the eccentricity of a vertex corresponds to the distance from that vertex to the most remote vertex in the graph.

The distance is obtained from the distance matrix as the count of edges between the two vertices. If r(i) is the largest matrix entry in row i of the distance matrix D, then the radius is defined as the smallest of the r(i). The graph diameter D is defined as the largest vertex eccentricity in the graph. (http://www.edusoft-lc.com/molconn/manuals/400/chaptwo.html)

Value

A data frame, each row represents one of the molecules, each column represents one feature. This function returns one column named PetitjeanNumber.

Author(s)

Nan Xiao <https://nanx.me>

Examples

1
2
3
4
5
smi = system.file('vignettedata/FDAMDD.smi', package = 'Rcpi')

mol = readMolFromSmi(smi, type = 'mol')
dat = extractDrugPetitjeanNumber(mol)
head(dat)

Rcpi documentation built on May 20, 2017, 10:25 p.m.

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