# a short RNaviCell script example
# load RNaviCell library
library(RNaviCell)
# create a NaviCell object and launch a server session
# this will automatically open a browser on the client
navicell <- NaviCell()
navicell$launchBrowser()
# import a gene expression matrix and
# send the data to the NaviCell server
# NB: the data_matrix object is a regular R matrix
data_matrix <- navicell$readDatatable('DU145_data.txt')
navicell$importDatatable("mRNA expression data", "DU145", data_matrix)
# set data set and sample for heat map representation
navicell$heatmapEditorSelectSample('0','data')
navicell$heatmapEditorSelectDatatable('0','DU145')
navicell$heatmapEditorApply()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.