View source: R/compute_metrics.R
computeSCR | R Documentation |
The function computes the ratio of the intensities of sample channels over the intentisty of the carrier channel for each feature. The ratios are averaged within the assay.
computeSCR(
object,
i,
colvar,
samplePattern,
sampleFUN = "mean",
carrierPattern,
carrierFUN = sampleFUN,
rowDataName = "SCR"
)
object |
A |
i |
A |
colvar |
A |
samplePattern |
A |
sampleFUN |
A |
carrierPattern |
A |
carrierFUN |
A |
rowDataName |
A |
A QFeatures
object for which the rowData
of the given
assay(s) is augmented with the mean SCR.
data("scp1")
scp1 <- computeSCR(scp1,
i = 1,
colvar = "SampleType",
carrierPattern = "Carrier",
samplePattern = "Blank|Macrophage|Monocyte",
sampleFUN = "mean",
rowDataName = "MeanSCR")
## Check results
rowData(scp1)[[1]][, "MeanSCR"]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.