immuneML.data_model.receptor.receptor_sequence package
Submodules
immuneML.data_model.receptor.receptor_sequence.Chain module
immuneML.data_model.receptor.receptor_sequence.ReceptorSequence module
- class immuneML.data_model.receptor.receptor_sequence.ReceptorSequence.ReceptorSequence(amino_acid_sequence: str = None, nucleotide_sequence: str = None, identifier: str = None, annotation: SequenceAnnotation = None, metadata: SequenceMetadata = None)[source]
Bases:
DatasetItem
- FIELDS = {'amino_acid_sequence': <class 'str'>, 'annotation': <class 'dict'>, 'identifier': <class 'str'>, 'metadata': <class 'dict'>, 'nucleotide_sequence': <class 'str'>, 'version': <class 'str'>}
- get_sequence(sequence_type: SequenceType = None)[source]
Returns receptor_sequence (nucleotide/amino acid) that corresponds to provided sequence type or preset receptor_sequence type from EnvironmentSettings class if no type is provided
- set_annotation(annotation: SequenceAnnotation)[source]
- set_metadata(metadata: SequenceMetadata)[source]
- set_sequence(sequence: str, sequence_type: SequenceType)[source]
- version = '1'
immuneML.data_model.receptor.receptor_sequence.SequenceAnnotation module
immuneML.data_model.receptor.receptor_sequence.SequenceFrameType module
immuneML.data_model.receptor.receptor_sequence.SequenceMetadata module
- class immuneML.data_model.receptor.receptor_sequence.SequenceMetadata.SequenceMetadata(v_subgroup: str = None, v_gene: str = None, v_allele: str = None, j_subgroup: str = None, j_gene: str = None, j_allele: str = None, chain=None, count: int = None, frame_type: str = 'IN', region_type: str = None, cell_id: str = None, custom_params: dict = None)[source]
Bases:
object
class modeling the existing knowledge about a receptor_sequence, should be stored according to IMGT gene nomenclature (human can be found here):
v subgroup
v gene
v allele
j subgroup
j gene
j allele
chain
count
region_type (e.g. IMGT_CDR3, IMGT_CDR1, FULL_SEQUENCE)
frame_type (e.g. IN, OUT, STOP)
sample
custom params (dictionary with custom sequence information)