Description Usage Arguments Examples
Plot a spectratype plot - a histogram of read counts / umi counts by CDR3 length.
1 2 3 4 5 6 7 8 9 | spectratype(
.data,
.quant = c("read.count", "umi.count", "id"),
.gene = "V",
.plot = T,
.main = "Spectratype",
.legend = "Gene segment",
.labs = c("CDR3 length", NA)
)
|
.data |
tcR data frame. |
.quant |
Either "read.count" or "umi.count" for choosing the corresponding columns, or "id" to compute avoid using counts. |
.gene |
Either NA for not using genes, "V" or "J" for corresponding genes. |
.plot |
If T than plot the spectratype plot, otherwise return a table with data for lengths and counts. |
.main |
Main title. |
.legend |
Legend title. |
.labs |
Character vector of length 2 for x-lab and y-lab. |
1 2 3 4 5 6 7 8 | ## Not run:
data(twb)
tmp = twb[[1]]
spectratype(tmp)
spectratype(tmp, .quant = "id", .plot = T, .gene = 'V')
spectratype(tmp, .quant = "read.count", .plot = F)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.