powered by
Plot a spectratype plot - a histogram of read counts / umi counts by CDR3 length.
spectratype( .data, .quant = c("read.count", "umi.count", "id"), .gene = "V", .plot = T, .main = "Spectratype", .legend = "Gene segment", .labs = c("CDR3 length", NA) )
tcR data frame.
Either "read.count" or "umi.count" for choosing the corresponding columns, or "id" to compute avoid using counts.
Either NA for not using genes, "V" or "J" for corresponding genes.
If T than plot the spectratype plot, otherwise return a table with data for lengths and counts.
Main title.
Legend title.
Character vector of length 2 for x-lab and y-lab.
# NOT RUN { data(twb) tmp = twb[[1]] spectratype(tmp) spectratype(tmp, .quant = "id", .plot = T, .gene = 'V') spectratype(tmp, .quant = "read.count", .plot = F) # }
Run the code above in your browser using DataLab