| computeSCR {scp} | 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, colDataCol, samplePattern, carrierPattern, rowDataName = "MeanSCR" )
object |
A |
i |
A |
colDataCol |
A |
samplePattern |
A |
carrierPattern |
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,
colDataCol = "SampleType",
carrierPattern = "Carrier",
samplePattern = "Blank|Macrophage|Monocyte",
rowDataName = "MeanSCR")
## Check results
rowDataToDF(scp1, 1, "MeanSCR")