column.summary: Columns statistics.

Description Usage Arguments Value See Also Examples

Description

column.summary - general function for computing summary statistics (using the summary function) for columns of the given mitcr data.frame: divide .factor.column by factors from .alphabet and compute statistics of correspondingly divided .target.column.

insertion.stats - compute statistics of insertions for the given mitcr data.frame.

Usage

1
2
3
column.summary(.data, .factor.col, .target.col, .alphabet = NA, .remove.neg = T)

insertion.stats(.data)

Arguments

.data

Data frame with columns .factor.col and target.col

.factor.col

Columns with factors by which the data will be divided to subsets.

.target.col

Column with numeric values for computing summaries after dividing the data to subsets.

.alphabet

Character vector of factor levels. If NA than use all possible elements frim the .factor.col column.

.remove.neg

Remove all elements which >-1 from the .target.col column.

Value

Data.frame with first column with levels of factors and 5 columns with output from the summary function.

See Also

summary

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# Compute summary statistics of VD insertions
# for each V-segment using all V-segments in the given data frame.
column.summary(immdata[[1]], 'V.gene', 'Total.insertions')
# Compute summary statistics of VD insertions for each V-segment using only V-segments
# from the HUMAN_TRBV_MITCR
column.summary(immdata[[1]], 'V.gene', 'Total.insertions', HUMAN_TRBV_MITCR)

## End(Not run)

imminfo/tcr documentation built on June 13, 2020, 7:01 a.m.