shinyCircos | R Documentation |
Visualise the similarity of MS/MS features in a reactive
context. See Details
the vignette for further descriptions on how to
use shinyCircos
.
shinyCircos(similarityMatrix, sps, condition, ...)
similarityMatrix |
|
sps |
|
condition |
|
... |
further arguments passed to |
The function is based on the shiny
and circlize
package.
The user can choose interactively thresholds, type of links (between or
within groups), display information about MS/MS features, permanently select
MS/MS features and export selected precursors. The Spectra
object
stores annotation information about the MS/MS features. Names of features
within the similarityMatrix
have to be found as entries
in Spectra
. sps$name
are used as identifiers and
colnames
/rownames
from similarityMatrix
are cleaved
by the group identifier (separated by "_"
). Annotation information
is taken from spectra
from the columns "names", "information",
"classes" and "adduct" in the slot metadata
of spectra
.
After exiting the application, the annotation will be written to the
respective columns in the slot metadata
. If one or several of these
columns is already present in metadata
, the column(s) will be used as
the source of annotation information.
character
, shinyCircos
returns a character
vector with the permanently selected precursors and an object with the
MSpectra
object containing the annotation.
Thomas Naake, thomasnaake@googlemail.com
data("spectra", package = "MetCirc")
similarityMat <- Spectra::compareSpectra(sps_tissue[1:10],
FUN = MsCoreUtils::ndotproduct, ppm = 10, m = 0.5, n = 2)
rownames(similarityMat) <- colnames(similarityMat) <- sps_tissue$name[1:10]
## Not run:
shinyCircos(similarityMatrix = similarityMat,
sps = sps_tissue, condition = c("SPL", "LIM", "ANT", "STY"))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.