feature: Class "feature"

Description Objects from the Class Slots Methods Author(s) See Also Examples

Description

This class represents features - arbitrary alphanumeric sequences that are used to characterize molecular substructures (though there is no real restriction to molecules). A feature is associated with an integer count, indicating the occurence of that feature in a molecule. The default value is 1.

Objects from the Class

Objects can be created by calls of the form new("feature", ...).

Slots

feature:

Object of class "character" ~ The string representation of a feature

count:

Object of class "integer" ~ The occurence of the feature. Default is 1

.Data:

???

Methods

count

signature(object = "feature"): Return the count associated with the feature

Author(s)

Rajarshi Guha rajarshi.guha@gmail.com

See Also

featvec-class

Examples

1
2
3
4
5
6
  ## create a new feature
  f <- new("feature", feature='ABCD', count=as.integer(1))

  ## modify the feature string and the count
  feature(f) <- 'UXYZ'
  count(f) <- 10

fingerprint documentation built on May 2, 2019, 2:42 a.m.