gctree.isotyping.IsotypeTemplate

class gctree.isotyping.IsotypeTemplate(isotype_order, weight_matrix=None)[source]

Bases: object

A template constructor class for Isotype()

Parameters:
  • isotype_order (Sequence[str]) – A list or other Sequence of isotype names, in the allowed class switching order

  • weight_matrix (Optional[Sequence[Sequence[float]]]) – An optional matrix containing transition weights between isotypes. Default weight is 1 for all allowed isotype transitions.

Methods

new

Return an Isotype() object with the isotype order and weight matrix provided to this class's constructor.

new(isotype_name)[source]

Return an Isotype() object with the isotype order and weight matrix provided to this class’s constructor.