Learn R Programming

kebabs (version 1.6.2)

KernelMatrixAccessors: KernelMatrix Accessors

Description

KernelMatrix Accessors

Usage

## S3 method for class 'KernelMatrix,index,missing,ANY':
[(x, i)

## S3 method for class 'matrix': as.KernelMatrix(x, center = FALSE)

Arguments

x
kernel matrix of class KernelMatrix
i
numeric vector with indicies or character with element names
center
when set to TRUE the matrix is centered. Default=FALSE

Value

  • see above

References

http://www.bioinf.jku.at/software/kebabs J. Palme, S. Hochreiter, and U. Bodenhofer (2015) KeBABS: an R package for kernel-based analysis of biological sequences. Bioinformatics, 31(15):2574-2576, 2015. DOI: http://dx.doi.org/10.1093/bioinformatics/btv176{10.1093/bioinformatics/btv176}.

Examples

Run this code
## create kernel object for normalized spectrum kernel
specK5 <- spectrumKernel(k=5)
## load data
data(TFBS)

km <- specK5(enhancerFB)
km1to5 <- km[1:5,1:5]
km1to5

Run the code above in your browser using DataLab