Represents a T-cell receptor repertoire with associated metadata, distance
matrices, and analysis results. This is the central data object of the
tcrdistR package. Create instances using the TCRrep constructor
rather than calling new("TCRrep", ...) directly.
Slots
clone_dfA
data.frameof clonotypes. Required columns depend on thechainsvalue: alpha-beta ("AB") requiresva,cdr3a,vb,cdr3b; alpha only ("A") requiresva,cdr3a; beta only ("B") requiresvb,cdr3b; gamma-delta ("GD") requiresva,cdr3a,vb,cdr3b.organismCharacter string specifying the organism. Must be one of the organisms available in the bundled gene database (e.g.
"human","mouse").chainsCharacter string specifying the chain combination. One of
"AB","A","B", or"GD".metricCharacter string specifying the distance metric. One of
"tcrdist"or"hamming".weightsA named list with elements
cdr3andv_regionspecifying the integer weights applied to each region's distance contribution.gap_penaltiesA named list with elements
cdr3andv_regionspecifying the integer gap penalties used in sequence alignment.dist_aDistance matrix for alpha-chain only comparisons. Either
NULLor a numeric matrix.dist_bDistance matrix for beta-chain only comparisons. Either
NULLor a numeric matrix.paired_distPaired (alpha + beta combined) distance matrix. Either
NULLor a numeric matrix. Populated whencompute_distances = TRUEis passed toTCRrep.knn_indicesK-nearest-neighbour index matrix. Either
NULLor an integer matrix of dimensions N x K.knn_distancesK-nearest-neighbour distance matrix. Either
NULLor a numeric matrix of dimensions N x K.rep_distsA named list of representative-clonotype distance objects, populated by downstream analyses.
meta_clonotypesMeta-clonotype table. Either
NULLor adata.frame.motifsA named list of motif objects, populated by downstream analyses.
See also
TCRrep for the recommended constructor.