predict.classifyRNA: predict.classifyRNA

Description Usage Arguments Details Value Author(s) References See Also Examples

Description

A function to classify rna structure change from an existing classifier.

Usage

1
2
## S3 method for class 'classifyRNA'
predict(object, sample = NULL, resp="prob", ...)

Arguments

object

An object of classifyRNA (see classifyRNA function).

sample

An optional matrix of predictors (e.g. output from getFeatures())

resp

An optional string to determine type of return value. Default is "prob".

...

additional arguments for predict method

Details

This function predicts RNA structure change in SHAPE data using a random forest classifier.

Value

A matrix of "response", "vote" or "prob" predictions.

"response"

Predicted classes (classes with majority vote)

"vote"

Vote count fraction (one column for each class and one row for each input)

"prob"

Class probabilities (one column for each class and one row for each input)

Author(s)

Chanin Tolson

References

A. Liaw and M. Wiener (2002). Classification and Regression by randomForest. R News 2(3), 18–22 (randomForest package)

See Also

getFeatures classifyRNA

Examples

1
2
3
4
5
6
#input data
data("mutmap")
#build classifier
cr = classifyRNA()
#get prediction
cr_pred = predict(cr, mutmap[,2:9])

classSNitch documentation built on May 2, 2019, 5:51 p.m.