| countClones {alakazam} | R Documentation |
countClones determines the number of sequences and total copy number of
clonal groups.
countClones(data, groups = NULL, copy = NULL, clone = "CLONE")
data |
data.frame with Change-O style columns containing clonal assignments. |
groups |
character vector defining |
copy |
name of the |
clone |
name of the |
A data.frame summarizing clone counts and frequencies with columns:
CLONE: clone identifier.
SEQ_COUNT: total number of sequences for the clone.
SEQ_FREQ: frequency of the clone as a fraction of the total
number of sequences within each group.
COPY_COUNT: sum of the copy counts in the copy column.
Only present if the copy argument is
specified.
COPY_FREQ: frequency of the clone as a fraction of the total
copy number within each group. Only present if
the copy argument is specified.
Also includes additional columns specified in the groups argument.
# Without copy numbers
clones <- countClones(ExampleDb, groups="SAMPLE")
# With copy numbers and multiple groups
clones <- countClones(ExampleDb, groups=c("SAMPLE", "ISOTYPE"), copy="DUPCOUNT")