scirpy.io.TcrChain¶
-
class
scirpy.io.
TcrChain
(chain_type, *, cdr3=None, cdr3_nt=None, expr=None, expr_raw=None, is_productive=None, v_gene=None, d_gene=None, j_gene=None, c_gene=None, junction_ins=None)¶ Data structure for a T cell receptor chain.
- Parameters
- chain_type : {‘TRA’, ‘TRB’, ‘other’}
Literal
[‘TRA’, ‘TRB’, ‘other’] Currently supported: [“TRA”, “TRB”, “other”]
- cdr3 :
str
,None
Optional
[str
] (default:None
) Amino acid sequence of the CDR3 region
- cdr3_nt :
str
,None
Optional
[str
] (default:None
) Nucleotide sequence fo the CDR3 region
- expr :
float
,None
Optional
[float
] (default:None
) Normalized read count for the CDR3 region. Will be UMIs for 10x and TPM for SmartSeq2.
- expr_raw :
float
,None
Optional
[float
] (default:None
) Raw read count for the CDR3 regions.
- is_productive :
bool
,None
Optional
[bool
] (default:None
) Is the chain productive?
- v_gene :
str
,None
Optional
[str
] (default:None
) gene symbol of v gene
- d_gene :
str
,None
Optional
[str
] (default:None
) gene symbol of d gene
- j_gene :
str
,None
Optional
[str
] (default:None
) gene symbol of j gene
- c_gene :
str
,None
Optional
[str
] (default:None
) gene symbol of c gene
- junction_ins :
int
,None
Optional
[int
] (default:None
) nucleotides inserted in the junctions. For type == TRA: nucleotides inserted in the VJ junction For type == TRB: sum of nucleotides inserted in the VD + DJ junction
- chain_type : {‘TRA’, ‘TRB’, ‘other’}
Methods