summary.hlaAlleleClass: Summarize a "hlaAlleleClass" or "hlaAASeqClass" object

View source: R/DataUtilities.R

summary.hlaAlleleClassR Documentation

Summarize a “hlaAlleleClass” or “hlaAASeqClass” object

Description

Show the information of a hlaAlleleClass or hlaAASeqClass object.

Usage

## S3 method for class 'hlaAlleleClass'
summary(object, verbose=TRUE, ...)
## S3 method for class 'hlaAASeqClass'
summary(object, poly.only=TRUE, head=0L,
    verbose=TRUE, ...)
## S3 method for class 'hlaAlleleClass'
print(x, ...)

Arguments

object

an object of hlaAlleleClass or hlaAASeqClass

x

an object of hlaAlleleClass or hlaAASeqClass

poly.only

if TRUE, only show the amino acid positions with polymorphism; otherwise, show all sequences

head

show the first head rows of cross tabulation, or 0L for all rows

verbose

if TRUE, show information

...

further arguments passed to or from other methods

Value

Return a data.frame of count and frequency for each HLA allele, if object is hlaAlleleClass; a matrix of cross tabulation of amino acids at each position, if object is hlaAASeqClass.

Author(s)

Xiuwen Zheng

See Also

hlaAllele, hlaConvSequence


zhengxwen/HIBAG documentation built on Nov. 24, 2024, 5:24 a.m.