Description Usage Arguments Value Author(s) See Also Examples
genomemap_rjs
creates an interactive genome map.
1 |
assembly |
a genome assembly data frame. RJSplot provides human assemblies (NCBI36, GRCh37, GRCh38), human assemblies with cytobands (GRCh37.bands or GRCh38.bands), or methods for creating your own assembly from a FASTA file |
track |
a data frame with values to represent on the genome map (chromosome, position, value). |
plot |
open resulting graph in your browser. |
jupyter |
embed the graph as an iframe into a Jupyter Notebook. |
dir |
a "character" string representing the directory where the graph will be saved. |
The function creates a folder in your computer with an HTML document named index.html which contains the graph. This file can be directly opened with Firefox. If you want to open this file stored in your local machine with other Web browser, please visit the help section on the RJSplot Web site (https://rjsplot.usal.es).
David Barrios and Carlos Prieto. Bioinformatics Service of Nucleus, University of Salamanca. See https://bioinfo.usal.es/
The ‘RJSplot’ Website: https://rjsplot.usal.es
dendrogram_rjs
, densityplot_rjs
, genomemap_rjs
, heatmap_rjs
, manhattan_rjs
, network_rjs
, scatterplot_rjs
, symheatmap_rjs
, wordcloud_rjs
, boxplot_rjs
, bubbles_rjs
, hiveplot_rjs
, piechart_rjs
, barplot_rjs
, tables_rjs
, surface3d_rjs
, scatter3d_rjs
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Create an interactive Genome map in a temporal directory of your local machine
## Live examples on https://rjsplot.usal.es
if(interactive()){
# Create test data
chr <- character()
pos <- numeric()
for(i in 1:nrow(GRCh38)){
chr <- c(chr,as.character(rep(GRCh38[i,"chr"],100)))
pos <- c(pos,sample(GRCh38[i,"start"]:GRCh38[i,"end"],100))
}
value <- round(rexp(length(pos)),2)
# Create a genome map
track <- data.frame(chr,pos,pos+1,NA,value)
genomemap_rjs(GRCh38.bands, track)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.