| countClones | R Documentation | 
countClones determines the number of sequences and total copy number of 
clonal groups.
countClones(
  data,
  groups = NULL,
  copy = NULL,
  clone = "clone_id",
  remove_na = TRUE
)
data | 
 data.frame with columns containing clonal assignments.  | 
groups | 
 character vector defining   | 
copy | 
 name of the   | 
clone | 
 name of the   | 
remove_na | 
 removes rows with   | 
A data.frame summarizing clone counts and frequencies with columns:
clone_id:    clone identifier. This is the default column
name, specified with clone='clone_id'.
If the function call uses Change-O 
formatted data and clone='CLONE', this
column will have name CLONE.
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_id")
# With copy numbers and multiple groups
clones <- countClones(ExampleDb, groups=c("sample_id", "c_call"), copy="duplicate_count")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.