forked from lima1/PureCN
-
Notifications
You must be signed in to change notification settings - Fork 0
/
annotateTargets.Rd
39 lines (35 loc) · 1.05 KB
/
annotateTargets.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/annotateTargets.R
\name{annotateTargets}
\alias{annotateTargets}
\title{Annotate targets with gene symbols}
\usage{
annotateTargets(x, txdb, org)
}
\arguments{
\item{x}{A \code{GRanges} object with interals to annotate}
\item{txdb}{A \code{TxDb} database, e.g.
\code{TxDb.Hsapiens.UCSC.hg19.knownGene}}
\item{org}{A \code{OrgDb} object, e.g. \code{org.Hs.eg.db}.}
}
\value{
A \code{GRanges} object.
}
\description{
This function can be used to add a \sQuote{Gene} meta column containing
gene symbols to a \code{GRanges} object.
It applies heuristics to find the protein coding genes that were
likely meant to target in the assay design in case transcripts
overlap.
}
\examples{
library(TxDb.Hsapiens.UCSC.hg19.knownGene)
library(org.Hs.eg.db)
normal.coverage.file <- system.file("extdata", "example_normal.txt.gz",
package = "PureCN")
x <- head(readCoverageFile(normal.coverage.file), 100)
x <- annotateTargets(x,TxDb.Hsapiens.UCSC.hg19.knownGene, org.Hs.eg.db)
}
\author{
Markus Riester
}