miniworld.utils.ProteinClass.ProteinSequence¶
- class miniworld.utils.ProteinClass.ProteinSequence(sequence, masked_sequence=None, chain_break=None)[source]¶
This class is used to store the protein sequence information:
M : Number of model L : Number of residue sequence : (M, L) torch.Tensor or str. I strongly recommend to use torch.Tensor masked_sequence : (M, L) torch.Tensor. chain_break : (M, ) list of dictionary or OrderDict. Ex) M=1, chain_break[0] = {A: (0,197), B:(198,356), … } sequence = Full sequence without None masked_sequence = Masked sequence with None
Methods
__init__(sequence[, masked_sequence, ...])get_sequence_by_chain_ID(chain_id)get_sequence_length()