calculateOverlap | R Documentation |
This function calculates overlap for all sample-pairs
in a SummarizedExperiment
object.
calculateOverlap(
x,
assay.type = assay_name,
assay_name = "counts",
detection = 0,
...
)
## S4 method for signature 'SummarizedExperiment'
calculateOverlap(
x,
assay.type = assay_name,
assay_name = "counts",
detection = 0,
...
)
runOverlap(x, ...)
## S4 method for signature 'SummarizedExperiment'
runOverlap(x, name = "overlap", ...)
x |
a
|
assay.type |
A single character value for selecting the
|
assay_name |
a single |
detection |
A single numeric value for selecting detection threshold for absence/presence of features. Feature that has abundance under threshold in either of samples, will be discarded when evaluating overlap between samples. |
... |
Optional arguments not used. |
name |
A single character value specifying the name of overlap matrix that is stored in reducedDim(x). |
These function calculates overlap between all the sample-pairs. Overlap reflects similarity between sample-pairs.
When overlap is calculated using relative abundances, the higher the value the higher the similarity is, When using relative abundances, overlap value 1 means that all the abundances of features are equal between two samples, and 0 means that samples have completely different relative abundances.
calculateOverlap returns sample-by-sample distance matrix.
runOverlap returns x
that includes overlap matrix in its
reducedDim.
Leo Lahti and Tuomas Borman. Contact: microbiome.github.io
calculateJSD
calculateUnifrac
data(esophagus)
tse <- esophagus
tse <- transformAssay(tse, method = "relabundance")
overlap <- calculateOverlap(tse, assay_name = "relabundance")
overlap
# Store result to reducedDim
tse <- runOverlap(tse, assay.type = "relabundance", name = "overlap_between_samples")
head(reducedDims(tse)$overlap_between_samples)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.