View source: R/bio_gene_locations.R
bio_gene_locations | R Documentation |
This function produces ggplot and plotly plots showing the genes in a genomic range
bio_gene_locations( chromosome = 6, xrange = c(2.8e+07, 3.4e+07), subset_genes = c(), font_size = 3, ggtheme = theme_null(), output_plots = TRUE, ens_version = "EnsDb.Hsapiens.v75", stat = "gene_level", label_col = ifelse(stat == "gene_level", "symbol", "tx_id") )
chromosome |
Which chromosome are you looking at |
xrange |
chromosome position |
ggtheme |
ggplot theme to give plots. |
output_plots |
Logical whether to output plots |
ens_version |
The EnsemblDB version. You will need this package installed. Options include: "EnsDb.Hsapiens.v75", "EnsDb.Hsapiens.v86"... |
stat |
The plotting stat for autoplot (either 'gene_level' for gene level annotation or 'tx_level' for transcript level annotation) |
label_col |
The column to label genes/transcripts by from the EnsemblDB. Options include those in 'EnsDb.Hsapiens.v75@tables$gene' or ‘EnsDb.Hsapiens.v75@tables$tx' (depending on stat), for example: ’gene_id', 'tx_id', 'symbol', 'entrezid', ... |
subset_gene |
List of genes to plot/subset to within xrange |
bio_gene_locations()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.