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,48 @@
1
+\name{annotFeaturesWithBiomaRt}
2
+\alias{annotFeaturesWithBiomaRt}
3
+\title{Annotation of features using \code{biomaRt}}
4
+\usage{
5
+  annotFeaturesWithBiomaRt(features, featureId, geneId,
6
+    mart = useMart(biomart = "ensembl", dataset = "hsapiens_gene_ensembl"))
7
+}
8
+\arguments{
9
+  \item{features}{Feature IDs to be annotated}
10
+
11
+  \item{featureId}{The type of the feature IDs, in the
12
+  \code{biomaRt} way (type \code{listFilters(mart)} to
13
+  choose one)}
14
+
15
+  \item{geneId}{The type of the gene IDs, in the
16
+  \code{biomaRt} way (type \code{listAttributes(mart)} to
17
+  choose one)}
18
+
19
+  \item{mart}{The mart object (database and dataset) used
20
+  for annotation, see function \code{useMart} of package
21
+  \code{biomaRt}}
22
+}
23
+\value{
24
+  A vector of gene IDs indexed by the feature IDs.
25
+}
26
+\description{
27
+  This function annotates a set of features using
28
+  \code{biomaRt}
29
+}
30
+\examples{
31
+if (interactive()) {
32
+# define the database to be queried by biomaRt
33
+mart <- useMart(biomart="ensembl", dataset="hsapiens_gene_ensembl")
34
+
35
+# annotate a set of HG-U133a probe sets IDs into Gene Symbols
36
+annotFeaturesWithBiomaRt(features = c("1007_s_at", "1053_at", "117_at", "121_at", "1255_g_at"),
37
+featureId="affy_hg_u133a", geneId="hgnc_symbol", mart=mart)
38
+
39
+# annotate a set of Ensembl Gene IDs into Gene Symbols
40
+annotFeaturesWithBiomaRt(features = c("ENSG00000101412", "ENSG00000112242",
41
+                                      "ENSG00000148773", "ENSG00000131747", "ENSG00000170312",
42
+                                      "ENSG00000117399"), featureId="ensembl_gene_id", geneId="hgnc_symbol", mart=mart)
43
+}
44
+}
45
+\author{
46
+  Anne Biton
47
+}
48
+