This function calculates the occurrence of a selected repertoire level and returns the calculated values for all the samples within a RepSeqExperiment object. It takes into account the weight of the studied level, i.e. the number of sequences expressing a certain gene segment, or the count of a sequence in a sample.
Arguments
- x
an object of class
RepSeqExperiment
- level
a character specifying the repertoire level to be analyzed. Should be one of "aaClone","ntClone","aaCDR3","ntCDR3","V", "J",or "VJ".
- scale
a character specifying the type of occurrence to return: "count" or "frequency".
- group
a vector of character indicating the group column name in mData and one experimental group within this column. Samples belonging to the chosen group will be analyzed. The column must be of class factor. Default is NULL, values are calculated in all the samples within the dataset.