We have the following functions -
mia::summarizeDominance() summarizes for each feature a) count (N) in how many samples it is dominant; b) fraction (%) of samples where it is dominant
mia::getPrevalence() summarizes for each feature on how prevalent it is across the samples
Both of these provide statistics for all features, and could be added in rowData.
It might be helpful to be more systematic with the naming, for instance just having getPrevalence and getDominance with analogous functionality.
The fraction of samples where a feature is dominant is easy to calculate from the counts so maybe that could be just dropped.
Suggestion:
- deprecate summarizeDominance
- add getDominance
- ensure that the logic and key argument names match with getPrevalence
We have the following functions -
mia::summarizeDominance()summarizes for each feature a) count (N) in how many samples it is dominant; b) fraction (%) of samples where it is dominantmia::getPrevalence()summarizes for each feature on how prevalent it is across the samplesBoth of these provide statistics for all features, and could be added in rowData.
It might be helpful to be more systematic with the naming, for instance just having
getPrevalenceandgetDominancewith analogous functionality.The fraction of samples where a feature is dominant is easy to calculate from the counts so maybe that could be just dropped.
Suggestion: