Description Usage Arguments Value Examples
function computes the perturbation scores as a distance between each repertoire and the mean repertoire of the control group.
1 2 3 4 5 6 | perturbation(
x,
ctrl.names,
distance = c("manhattan", "euclidean", "canberra", "minkowski", "maximum"),
p = 2
)
|
x |
an object of class RepSeqExperiment. |
ctrl.names |
a vector of characters indicating the names of samples used as control repertoire. |
distance |
distance used for perturbation calculus. |
p |
an integer, the power of Minkowski distance. Default p = 2. |
a data frame containing perturbation scores for each V-genes.
1 2 3 4 5 6 7 8 | ## Not run:
## The package RepSeqData contains example datasets
library(RepSeqData)
rownames(sData(RepSeqData))
pert <- perturbation(RepSeqData, ctrl.names = c("S01", "S02", "S03"), distance = "manhattan")
pert
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.