Description Usage Arguments Examples
View source: R/HoneyBADGER_gexp.R
Plot gene expression profile
1 2 3 |
gexp.norm |
Normalized gene expression matrix |
genes |
GRanges annotation of gene names and coordinates |
chrs |
Chromosomes to be plotted (default: paste0('chr', c(1:22, 'X'))) |
region |
Optional GenomicRanges region of interest such as expected CNV boundaries. (default: NULL) |
window.size |
Window size for sliding window mean. Must be odd number. (default: 101) |
zlim |
Limit for plotting heatmap (default: c(-2,2)) |
cellOrder |
Order of cells. If 'set' will be automatically ordered by clustering. Else will be same order as input. |
widths |
Widths of chromosomes in plot. If 'set' will depend on number of genes in region. Else will be equal. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | data(gexp)
data(ref)
require(biomaRt) ## for gene coordinates
mart.obj <- useMart(biomart = "ENSEMBL_MART_ENSEMBL",
dataset = 'hsapiens_gene_ensembl',
host = "jul2015.archive.ensembl.org")
gexp.mats <- setGexpMats(gexp, ref, mart.obj, filter=FALSE, scale=FALSE)
##Set by known chromosome size widths:
##https://genome.ucsc.edu/goldenpath/help/hg19.chrom.sizes
gexp.plot <- plotGexpProfile(gexp.mats$gexp.norm, gexp.mats$genes,
widths=c(249250621, 243199373, 198022430, 191154276, 180915260,
171115067, 159138663, 146364022, 141213431, 135534747, 135006516,
133851895, 115169878, 107349540, 102531392, 90354753, 81195210,
78077248, 59128983, 63025520, 51304566, 48129895)/1e7)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.