Learn R Programming

kebabs (version 1.6.2)

PredictionProfileAccessors: PredictionProfile Accessors

Description

PredictionProfile Accessors

Usage

## S3 method for class 'PredictionProfile':
sequences(object)

Arguments

object
a prediction profile object

Value

  • sequences: sequences for which profiles were generated profiles: prediction profiles baselines: baselines for the plot, this is the model offset distributed to all sequence positions

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 gappy pair kernel
gappy <- gappyPairKernel(k=1,m=11, annSpec=TRUE)
## load data
data(CCoil)

## perform training - feature weights are computed by default
model <- kbsvm(ccseq, yCC, gappya, pkg="LiblineaR", svm="C-svc", cost=15)

## compute prediction profiles
predProf <- getPredictionProfile(ccseq, gappya,
                                 featureWeights(model),
                                 modelOffset(model))
predProf15 <- predProf[c(1,5),]
sequences(predProf15)
profiles(predProf15)
baselines(predProf15)

Run the code above in your browser using DataLab