Description Usage Arguments Value See Also Examples
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.
1 2 3 | column.summary(.data, .factor.col, .target.col, .alphabet = NA, .remove.neg = T)
insertion.stats(.data)
|
.data |
Data frame with columns |
.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 |
.remove.neg |
Remove all elements which >-1 from the |
Data.frame with first column with levels of factors and 5 columns with output from the summary
function.
summary
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.