| countUniqueFeatures {QFeatures} | R Documentation |
Count Unique Features
This function counts the number of unique features per sample. A grouping structure can be provided to count higher level features from assays, for example counting the number of unique proteins from PSM data.
countUniqueFeatures(object, i, groupBy = NULL, colDataName = "count")
object |
An object of class |
i |
A |
groupBy |
A |
colDataName |
A |
An object of class QFeatures.
data("ft_na")
## Count number of (non-missing) PSMs
ft_na <- countUniqueFeatures(ft_na,
i = "na",
colDataName = "counts")
ft_na$counts
## Count number of unique rowData feature
ft_na <- countUniqueFeatures(ft_na,
i = "na",
groupBy = "Y",
colDataName = "Y_counts")
ft_na$Y_counts