devtools
package if you have not alreadyinstall.packages("devtools")
panorama
with the following commanddevtools::install_github("ParkerICI/panorama")
This will install the panorama
R package together with all the required dependencies. If evertyhing was successful you should be able to start the GUI with the following commands
library(panorama)
panorama()
to stop the GUI simply hit the ESC
key in your R session.
When you launch the GUI you will be prompted to select a file. You can select any file in what you want to be your working directory and this will set the working directory for the remainder of the session.
The working directory must contain all the graphml
files you want to visualize, plus a sub-folder named clusters_data
containing the single-cell data for each cluster. If the graphml files represent Scaffold maps, a sub-folder called landmarks_data
must also be present.
If the graphml
files were generated using the scgraphs package these directories were generated for you as long as the process.clusters.data
option was set to TRUE
in scgraphs::run_scaffold_analysis
or scgraphs::get_unsupervised_graph_from_files
(please refer to the documentation of the scgraphs
packages for details)
Once the working directory has been selected two browser windows will be opened: a main window containing the graph visualization, and a separate plotting window. Please note the following, depending on your browser settings:
- If your browser is configured to block pop-ups you need to allow pop-ups coming from the address 127.0.0.1:8072
(8072 is the default panorama
port, you will have to enable pop-ups coming from a different port if you change this default)
- If your browser is configured to open new windows in a new tab, the last tab shown in the browser will be the plotting window, which is initially empty. The main panorama
interface will be in a different tab
graphml
file you want to visualize from a list of files contained in your working directoryYou can interact with the graph using the mouse as follows: - Scrolling: zoom in/out. - Left click + drag: panning - Click on a node + Shift key: add the node to the current selection, or create a new selection if none existed (selected nodes are displayed in red) - Left click + drag + Alt key: select all nodes inside a rectangle. To clear the current selection use this key combination to create a selection on an empty area of the graph
The appearence of the graph can be modified with the following controls:
Absolute
. The sample with respect to which stats are calculated (see Stats type)One of the most useful ways to inspect a cluster is to plot the expression values for the cells that comprise the cluster. The controls below allow you to control the appeareance of the plot. Only data for the clusters that have been selected will be plotted. If the graph represents a Scaffold map, the plot will also include the data for the landmarks that are connected to the selected clusters
vite::get_unsupervised_graph
)panorama
will not allow plots that would require pooling data across multiple samples, in cases where such pooling does not make senseAdd the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.