annotateTargets {PureCN} | R Documentation |
This function can be used to add a ‘Gene’ meta column containing
gene symbols to a 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.
annotateTargets(x, txdb, org)
x |
A |
txdb |
A |
org |
A |
A GRanges
object.
Markus Riester
library(TxDb.Hsapiens.UCSC.hg19.knownGene) library(org.Hs.eg.db) normal.coverage.file <- system.file("extdata", "example_normal.txt", package="PureCN") x <- head(readCoverageFile(normal.coverage.file),100) x <- annotateTargets(x,TxDb.Hsapiens.UCSC.hg19.knownGene, org.Hs.eg.db)