MSIseq.classify: Classify Microsatellite Instability with MSIseq Classifier

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

Description

This function gives a classification result for MSI status based on classifier with the mutation information in the mutationNum argument.

Usage

1
MSIseq.classify(mutationNum, classifier = NGSclassifier, cancerType = NULL)

Arguments

mutationNum

A data frame output from Compute.input.variables, which containing 9 variables: T.sns, S.sns, T.ind, S.ind, T, S, Ratio.sns, Ratio.ind, Ratio.

classifier

A RWeka J48 model returned from the function MSIseq.train. Notice that if this argument is missing, the function will use a default build-in classifier, NGSclassifier.

cancerType

A data frame with two columns: Tumor_Sample_Barcode (tumor ID) and the corresponding cancer_type. Check NGStraintype for detail. If the classifier used in this function is trained with cancerType argument, cancerType should be provided here.

Details

This function gives a classification of MSI status for the samples with their mutationNum information. The classification is made with the decision tree model in classifier. It also flags the samples with likely POLE deficiency based on the criteria of high T.sns (> 60/Mb) and low S.ind (< 0.18/Mb).

Value

A data frame with three columns: Tumor_Sample_Barcode, the corresponding classified MSI_status, and a third column indicating whether the sample is likely POLE deficient.

Author(s)

Mini Huang

References

Kurt Hornik, Christian Buchta, Achim Zeileis (2009) Open-Source Machine Learning: R Meets Weka. Computational Statistics, 24(2), 225-232.

See Also

MSIseq.train, Compute.input.variables

Examples

1
2
3
4
5
6
7
8
9
## load sample data: test.mutationNum

data(test.mutationNum)
data(NGStestseqLen)


## classify on test data with NGSclassifier (the default classifier)

result <- MSIseq.classify(mutationNum = test.mutationNum)

Example output

Loading required package: IRanges
Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, cbind, colMeans, colSums, colnames, do.call,
    duplicated, eval, evalq, get, grep, grepl, intersect, is.unsorted,
    lapply, lengths, mapply, match, mget, order, paste, pmax, pmax.int,
    pmin, pmin.int, rank, rbind, rowMeans, rowSums, rownames, sapply,
    setdiff, sort, table, tapply, union, unique, unsplit, which,
    which.max, which.min

Loading required package: S4Vectors
Loading required package: stats4

Attaching package: 'S4Vectors'

The following object is masked from 'package:base':

    expand.grid

Loading required package: RWeka
OpenJDK 64-Bit Server VM warning: Can't detect initial thread stack location - find_vma failed
Loading required package: rJava
Loading required package: R.utils
Loading required package: R.oo
Loading required package: R.methodsS3
R.methodsS3 v1.7.1 (2016-02-15) successfully loaded. See ?R.methodsS3 for help.
R.oo v1.21.0 (2016-10-30) successfully loaded. See ?R.oo for help.

Attaching package: 'R.oo'

The following object is masked from 'package:rJava':

    clone

The following object is masked from 'package:IRanges':

    trim

The following objects are masked from 'package:methods':

    getClasses, getMethods

The following objects are masked from 'package:base':

    attach, detach, gc, load, save

R.utils v2.5.0 (2016-11-07) successfully loaded. See ?R.utils for help.

Attaching package: 'R.utils'

The following object is masked from 'package:utils':

    timestamp

The following objects are masked from 'package:base':

    cat, commandArgs, getOption, inherits, isOpen, parse, warnings

Warning message:
system call failed: Cannot allocate memory 

MSIseq documentation built on May 2, 2019, 7:23 a.m.