Browse code

Adds MineICA, SomatiCA and lpNet to the repos.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/MineICA@73179 bc3139a8-67e5-0310-9ffc-ced21a209358

Marc Carlson authored on 05/02/2013 22:15:53
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,75 @@
1
+\name{selectContrib}
2
+\alias{selectContrib}
3
+\alias{selectContrib,IcaSet-method}
4
+\alias{selectContrib,IcaSet,numeric,character-method}
5
+\alias{selectContrib,list,numeric,ANY}
6
+\alias{selectContrib,list,numeric,ANY-method}
7
+
8
+
9
+\title{Select contributing features/genes}
10
+\usage{
11
+  selectContrib(object, cutoff, level, ...)
12
+}
13
+\arguments{
14
+  \item{object}{Either an \code{IcaSet} object, or a list
15
+  of projection vectors, e.g the list of feature or gene
16
+  projections on each component.}
17
+
18
+  \item{cutoff}{The threshold according to which the
19
+    elements will be selected. Must be either of length 1 and the same treshold is
20
+  applied to all components, or of length equal to the number of
21
+  components in order to use a specific threshold for each component.}
22
+  
23
+  \item{level}{The level of the selection: either \code{"genes"} to select
24
+  contributing genes using \code{SByGene(icaSet)}, or \code{"features"}
25
+  to select contributing features using \code{S(icaSet)}. }
26
+  \item{...}{...}
27
+}
28
+\value{
29
+  A list of projections restricted to the elements that are
30
+  higher than \code{cutoff}.
31
+}
32
+\description{
33
+  This function selects elements whose absolute scaled
34
+  values exceed a given threshold.
35
+}
36
+\details{
37
+  Each vector is first scaled and then only elements with
38
+  an absolute scaled value higher than \code{cutoff} are
39
+  kept.
40
+}
41
+\examples{
42
+\dontrun{
43
+## load an example of icaSet
44
+data(icaSetCarbayo)
45
+
46
+##### =========
47
+####  When arg 'object' is an IcaSet object
48
+##### =========
49
+
50
+## select contributing genes
51
+selectContrib(object=icaSetCarbayo, cutoff=3, level="genes")
52
+
53
+## select contributing features
54
+selectContrib(object=icaSetCarbayo, cutoff=3, level="features")
55
+
56
+##### =========
57
+#### When arg 'object' is a list
58
+##### =========
59
+ c1 <- rnorm(100); names(c1) <- 100:199
60
+ c2 <- rnorm(100); names(c2) <- 1:99
61
+ selectContrib(object=list(c1,c2), cutoff= 0.5)
62
+
63
+## select contributing features
64
+contribFlist <- selectContrib(Slist(icaSetCarbayo), 3)
65
+
66
+## select contributing genes
67
+contribGlist <- selectContrib(SlistByGene(icaSetCarbayo), 3)
68
+
69
+
70
+}
71
+}
72
+\author{
73
+  Anne Biton
74
+}
75
+