Skip to content

Commit 7a6f11b

Browse files
committed
Updates to docs and namespace, ready for R-3.1
1 parent 48e71f4 commit 7a6f11b

File tree

4 files changed

+47
-5
lines changed

4 files changed

+47
-5
lines changed

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Package: pod
2-
Version: 0.99.02
2+
Version: 0.99.03
33
Date: 2013-10-10
44
Title: Tools for patient-specific expression outlier detection
55
Author: Daniel Bottomly
66
Maintainer: Daniel Bottomly <bottomly@ohsu.edu>
77
Imports: Biobase
8-
Depends: R (>= 2.15.0)
9-
Suggests: oligo
8+
Depends: R (>= 3.1.0),methods
9+
Suggests: oligo,pd.huex.1.0.st.v2
1010
Description: An implementation of outlier detection methods discussed in the paper 'Comparison of methods to identify aberrant expression patterns in individual patients: augmenting our toolkit for precision medicine'. Additional related approaches may be added in the future.
1111
License: GPL-3
1212
Collate:methods.R

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import(methods)
12
importClassesFrom(Biobase, ExpressionSet)
3+
importFrom(Biobase, ExpressionSet, exprs)
24

35
export(outlyingDegree,zScore)

man/methods.Rd

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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}

inst/doc/pod.Rnw renamed to vignettes/pod.Rnw

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ sampleNames <- c('09206', '09788', '09562', '09177', '09182', '09624', '08431',
2929
'08A_A11H1_09182_432BD.CEL', '012A_A11H1_09624_432BD.CEL', '011A_A11H1_08431_432BD.CEL', '010A_A11H1_T119_432BD.CEL',
3030
'014A_A11H1_09076_432BD.CEL', '06A_A11H1_08419_432BD.CEL', '07A_A11H1_08118_432BD.CEL', '015A_A11H1_09190_432BD.CEL')
3131
32-
cel.dir <- "/Users/bottomly/Desktop/github_projects/pod_vignette/432BD_CELS"
32+
cel.dir <- "/Users/bottomly/Desktop/github/pod_vignette/432BD_CELS"
3333
3434
affy.exprs <- read.celfiles(filenames=file.path(cel.dir, filenames), sampleNames=sampleNames, pkgname="pd.huex.1.0.st.v2")
3535
36-
norm.eset <- rma(object=affy.exprs, background=TRUE, normalize=TRUE, subset=NULL, target="probeset")
36+
norm.eset <- rma(object=affy.exprs, background=TRUE, normalize=TRUE, subset=NULL, target="core")
3737
@
3838

3939
Using our \texttt{norm.eset} object, we can now compute our outlier statistics, for instance the outlying degree, Zscore and Rscore as below.

0 commit comments

Comments
 (0)