|
| 1 | +\name{Methods for patient-specific outlier detection} |
| 2 | +\alias{outlyingDegree} |
| 3 | +\alias{outlyingDegree,matrix-method} |
| 4 | +\alias{outlyingDegree,ExpressionSet-method} |
| 5 | +\alias{zScore} |
| 6 | +\alias{zScore,matrix-method} |
| 7 | +\alias{zScore,ExpressionSet-method} |
| 8 | +\title{ |
| 9 | + Methods for patient-specific outlier detection |
| 10 | +} |
| 11 | +\description{ |
| 12 | + Implementations of the outlying degree and Zscore methodologies desribed in Bottomly et al 2013. |
| 13 | +} |
| 14 | +\usage{ |
| 15 | +\S4method{outlyingDegree}{ExpressionSet}(obj, k, type=c("non.weight", "weight.before", "weight.after"), weight.func=default.weight.func) |
| 16 | +\S4method{outlyingDegree}{matrix}(obj, k, type=c("non.weight", "weight.before", "weight.after"), weight.func=default.weight.func) |
| 17 | +\S4method{zScore}{ExpressionSet}(obj, robust=FALSE) |
| 18 | +\S4method{zScore}{matrix}(obj, robust=FALSE) |
| 19 | +} |
| 20 | +\arguments{ |
| 21 | + \item{obj}{Either a \code{matrix} with rows corresponding to genes and columns corresponding to samples or an \code{ExpressionSet} object } |
| 22 | + \item{k}{An integer value that can range from 1 to ncol(obj)-1} |
| 23 | + \item{type}{One of either "non.weight", "weight.before" or "weight.after" which corresponds to the standard outlying degree method, whether to apply the weights specified in \code{weight.func} before computing the distance or after computing the distance respectively.} |
| 24 | + \item{weight.func}{A function returning a square matrix containing the weights corresponding to the sample-sample dissimilarities.} |
| 25 | + \item{robust}{Whether a robust Zscore should be computed e.g. (x-median(x))/mad(x)} |
| 26 | + } |
| 27 | + |
| 28 | +\author{ |
| 29 | +Daniel Bottomly |
| 30 | +} |
| 31 | + |
| 32 | +\examples{ |
| 33 | +set.seed(123) |
| 34 | +cur.mat <- matrix(rnorm(20000), ncol=20, nrow=1000, dimnames=list(paste0("gene", 1:1000), paste0("samp", 1:20))) |
| 35 | +cur.eset <- Biobase::ExpressionSet(assayData=cur.mat) |
| 36 | +stopifnot(all.equal(outlyingDegree(cur.mat, k=1), outlyingDegree(cur.eset, k=1))) |
| 37 | +stopifnot(all.equal(zScore(cur.mat), zScore(cur.eset))) |
| 38 | +} |
| 39 | + |
| 40 | +\keyword{utilities} |
0 commit comments