Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/reannotate.CNV.res.R
An optional function to add gene annotation to each CNV segment.
1 | reannotate.CNV.res(res, gene, only.CNV = FALSE)
|
res |
a data frame resultingfrom |
gene |
a data frame containing gene annotation information. |
only.CNV |
logical. If only segment assigned to gain/loss/LOH
to be annotated and output. Default is |
The RefSeq gene annotation file can be downloaded from UCSC Genome Browser.
A gene annotation column have been add to the data frame resulting from
cnv.call
.
Zhongyang Zhang <zhongyang.zhang@mssm.edu>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
## An example of RefSeq gene annotation file,
## the original version of which can be downloaded from UCSC Genome Browser
url <- "https://zhangz05.u.hpc.mssm.edu/saasCNV/data/refGene_hg19.txt.gz"
tryCatch({download.file(url=url, destfile="refGene_hg19.txt.gz")
}, error = function(e) {
download.file(url=url, destfile="refGene_hg19.txt.gz", method="curl")
})
## If download.file fails to download the data, please manually download it from the url.
gene.anno <- read.delim(file="refGene_hg19.txt.gz", as.is=TRUE, comment.char="")
data(seq.cnv)
seq.cnv.anno <- reannotate.CNV.res(res=seq.cnv, gene=gene.anno, only.CNV=TRUE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.