ワンクリックで
esm
ESM protein language models for sequence embeddings and structure prediction
メニュー
ESM protein language models for sequence embeddings and structure prediction
Shared operational contract for all MedSci agents: sequential execution, planning phase, retry limits, evidence standards.
Isolated exploratory code execution with medsci-sandbox tools. Use when analysis requires custom code beyond existing domain MCP tools.
AlphaFold DB for predicted protein structures and pLDDT confidence scores
Molecular biology toolkit. Use for FASTA parsing, sequence analysis, and translation.
ChEMBL database access for bioactivity data and target search
Datamol for molecular manipulation, SMILES processing, and cheminformatics
| name | esm |
| description | ESM protein language models for sequence embeddings and structure prediction |
ESM (Evolutionary Scale Modeling) is Meta AI's family of protein language models trained on millions of protein sequences. ESM-2 provides per-residue and per-sequence embeddings. ESMFold predicts 3D structure from sequence alone.
esm2_t33_650M_UR50D as default.import torch, esm
model, alphabet = esm.pretrained.esm2_t33_650M_UR50D()
batch_converter = alphabet.get_batch_converter()
model.eval()
data = [("protein1", "MKTLLILAVL")]
batch_labels, batch_strs, batch_tokens = batch_converter(data)
with torch.no_grad():
results = model(batch_tokens, repr_layers=[33], return_contacts=True)
embeddings = results["representations"][33] # (batch, seq_len, 1280)
contact_map = results["contacts"] # predicted contacts
model = esm.pretrained.esmfold_v1()
model.eval()
with torch.no_grad():
output = model.infer_pdb("MKTLLILAVL")
# output is a PDB-format string
pip install fair-esm.