4a1e5b31 |
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_annotation.R
\name{get_annotation}
\alias{get_annotation}
\title{Get an annotation data frame from biomaRt}
\usage{
get_annotation(dds, biomart_dataset, idtype)
}
\arguments{
|
e63fe6d6 |
\item{dds}{A \code{\link[=DESeqDataSet]{DESeqDataSet()}} object}
|
4a1e5b31 |
\item{biomart_dataset}{A biomaRt dataset to use. To see the list, type
\code{mart = useMart('ensembl')}, followed by \code{listDatasets(mart)}.}
\item{idtype}{Character, the ID type of the genes as in the row names of
|
e63fe6d6 |
\code{dds}, to be used for the call to \code{\link[=getBM]{getBM()}}}
|
4a1e5b31 |
}
|
d42f9869 |
\value{
A data frame for ready use in \code{pcaExplorer}, retrieved from biomaRt.
}
|
4a1e5b31 |
\description{
Get an annotation data frame from biomaRt
}
|
d42f9869 |
\examples{
|
4cf99bf8 |
library("airway")
data("airway", package = "airway")
|
d42f9869 |
airway
dds_airway <- DESeq2::DESeqDataSetFromMatrix(assay(airway),
colData = colData(airway),
|
c8e298cb |
design = ~dex+cell)
|
d42f9869 |
\dontrun{
|
c8e298cb |
get_annotation(dds_airway, "hsapiens_gene_ensembl", "ensembl_gene_id")
|
d42f9869 |
}
}
|