tcR (version 1.1)

mitcr.stats: MiTCR data frame basic statistics.

Description

Compute basic statistics of TCR repertoires: number of clones, number of clonotypes, number of in-frame and out-of-frame sequences, summary of "Read.count" and other.

Usage

mitcr.stats(.data, .head = 0, .col = 'Read.count')

lib.mitcr.stats(.data, .head = 0, .umi = NA)

Arguments

.data
MiTCr data frames or a list with MiTCR data frames.
.head
How many top clones use to comput summary.
.col
Which columns to use to compute statistics.
.umi
If T than use both "Barcode.count" and "Read.count" columns. If NA than check if "Barcode.count" in columns' names.

Value

  • if .data is a data frame, than numeric vector with statistics. If .data is a list with data frames, than matrix with statistics for each data frame.

Examples

Run this code
# Compute basic statistics of list with data frames.
mitcr.stats(immdata)
lib.mitcr.stats(immdata)

Run the code above in your browser using DataCamp Workspace