miniworld.utils.ProteinClass.ProteinMSA

class miniworld.utils.ProteinClass.ProteinMSA(msa_ID=None, query_sequence=None, msa_tensor=None, insertion_tensor=None, a3m_file_path=None)[source]

Represents the Multiple Sequence Alignment (MSA) of a Protein:

msa_ID : str query_sequence : str or torch.tensor(1, L) or (L,) msa(_tensor) : torch.tensor(N, L); N is MSA depth insertion(_tensor) : torch.tensor(N, L) a3m_file_path : str for load this object from a3m file

__init__(msa_ID=None, query_sequence=None, msa_tensor=None, insertion_tensor=None, a3m_file_path=None)[source]

Methods

__init__([msa_ID, query_sequence, ...])

from_a3m_file_path(a3m_file_path[, max_seq])

Input : a3m_file_path (.a3m or .a3m.gz)

from_msa_tensor(msa_tensor)

print_query()

save(saving_directory)