본문으로 건너뛰기
cccskills
무료GitHub에 공개

structure-prediction

Protein structure prediction from sequence. ESMFold-based, single GPU, no MSA needed. Predicts 3D structures with pLDDT confidence scores for drug discovery targets.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(6)

  • SKILL.md8.2 KB
  • references/confidence_metrics.md7.5 KB
  • scripts/compare.py15.3 KB
  • scripts/evaluate.py12.2 KB
  • scripts/predict_batch.py11.6 KB
  • scripts/predict.py10.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Structure Prediction (ESMFold)

Overview

This skill provides protein 3D structure prediction from amino acid sequences using ESMFold (Evolutionary Scale Modeling Fold). ESMFold is a single-sequence protein structure prediction model developed by Meta AI that produces accurate 3D coordinates directly from an amino acid sequence without requiring multiple sequence alignments (MSA) or template search.

Key advantages of ESMFold:

  • No MSA required: Predictions run on a single sequence, making inference dramatically faster than AlphaFold2 (seconds vs. minutes/hours).
  • Single GPU execution: The entire model fits on one GPU (requires ~16 GB VRAM for sequences up to ~400 residues, more for longer sequences).
  • End-to-end: Takes a raw amino acid string and outputs a full PDB structure with per-residue confidence scores (pLDDT).
  • Drug discovery ready: Suitable for rapid screening of target structures, variant modeling, and initial structural hypotheses.

When to Use This Skill

Use the structure-prediction skill when you need to:

  • Predict a protein structure from an amino acid sequence
  • Fold a protein when no experimental structure is available
  • Screen multiple sequences for structural viability in batch mode
  • Evaluate prediction confidence to assess reliability of modeled regions
  • Compare a predicted structure against an experimental reference (e.g., from PDB)
  • Identify disordered regions in a protein based on low-confidence scores
  • Generate initial models for downstream molecular docking or dynamics simulations

Trigger phrases: "predict structure", "fold protein", "run ESMFold", "structure from sequence", "batch fold", "evaluate pLDDT", "compare structures"

Related Skills

  • alphafold-database: If the protein has a UniProt ID, check AlphaFold DB first — pre-computed structures are instant, no GPU needed.
  • esm: For generative protein design, embeddings, or inverse folding (broader than just structure prediction).
  • protein-diagram: For rendering 2D diagrams of protein structures (domain maps, Ramachandran plots) — not prediction.

Installation

pip install fair-esm torch biopython

Requirements:

  • Python 3.8+
  • PyTorch 1.12+ (with CUDA support recommended for GPU acceleration)
  • fair-esm (provides the ESMFold model)
  • biopython (for PDB parsing, structure I/O, and superimposition)

For GPU acceleration, ensure you have a CUDA-compatible GPU with at least 16 GB VRAM. CPU inference is supported but significantly slower.

Optional for structure comparison:

  • TMalign (external binary) for TM-score computation. If not available, the compare script falls back to BioPython-based RMSD calculation.

Core Workflows

1. Single Structure Prediction

Predict a 3D structure from a single amino acid sequence or FASTA file.

# From a FASTA file
python scripts/predict.py --input sequence.fasta --output predicted.pdb

# From a raw sequence string
python scripts/predict.py --input "MKFLILLFNILCLFPVLAADNHGVS..." --output predicted.pdb

# Force CPU (useful if GPU memory is insufficient)
python scripts/predict.py --input sequence.fasta --output predicted.pdb --device cpu

# Auto-detect device (default)
python scripts/predict.py --input sequence.fasta --output predicted.pdb --device auto

Output: A PDB file with atomic coordinates and a printed summary including sequence length, mean pLDDT, and per-residue confidence statistics.

See: scripts/predict.py

2. Batch Structure Prediction

Predict structures for multiple sequences from a multi-FASTA file or CSV.

# From a multi-FASTA file
python scripts/predict_batch.py --input sequences.fasta --output-dir results/

# From a CSV file (must have 'name' and 'sequence' columns)
python scripts/predict_batch.py --input sequences.csv --output-dir results/

# Specify device
python scripts/predict_batch.py --input sequences.fasta --output-dir results/ --device cuda

Output: Individual PDB files in the output directory named by sequence ID, plus a summary.csv containing: name, sequence length, mean pLDDT, and output path for each prediction.

See: scripts/predict_batch.py

3. Structure Evaluation

Evaluate a predicted PDB structure for confidence metrics and structural quality.

python scripts/evaluate.py --input predicted.pdb

Output: A formatted report including:

  • Mean pLDDT score
  • pLDDT distribution by confidence tier
  • Estimated secondary structure content (helix, sheet, coil)
  • List of low-confidence regions (pLDDT < 50) that may be disordered or unreliable

See: scripts/evaluate.py

4. Structure Comparison

Compare a predicted structure against an experimental reference.

python scripts/compare.py --predicted predicted.pdb --reference experimental.pdb

Output: A comparison report including:

  • C-alpha RMSD after optimal superimposition
  • TM-score (if TMalign is installed, otherwise BioPython-based approximation)
  • GDT-TS score (if TMalign is available)
  • Per-residue distance analysis

See: scripts/compare.py

Output Interpretation

pLDDT Confidence Scores

ESMFold outputs per-residue pLDDT (predicted Local Distance Difference Test) scores ranging from 0 to 100. These scores indicate the model's confidence in each residue's predicted position:

Score RangeConfidence LevelInterpretation
> 90Very highAtomic-level accuracy expected. Backbone and side-chain positions are likely reliable.
70 - 90ConfidentBackbone topology is reliable. Side-chain rotamers may vary.
50 - 70LowOverall fold topology may be correct, but local details are uncertain.
< 50Very lowRegion is likely intrinsically disordered or unstructured. Do not trust atomic positions.

What good looks like: A well-folded globular protein will typically show mean pLDDT > 70, with most of the core residues above 80-90 and only flexible loops or termini below 70.

What bad looks like: A prediction with mean pLDDT < 50 suggests the model has low confidence across the entire structure. This may indicate an intrinsically disordered protein, a sequence outside the model's training distribution, or a sequence that is too long for reliable single-sequence prediction.

For detailed confidence metric interpretation, see: references/confidence_metrics.md

Limitations

  1. Sequence length: ESMFold performs best on sequences under ~400 residues. Sequences of 400-800 residues are feasible but require more GPU memory (32+ GB VRAM). Sequences over 800 residues may cause out-of-memory errors on most hardware and typically produce lower-quality predictions.

  2. No multi-chain prediction: ESMFold predicts single-chain structures only. It cannot model protein complexes, homo-oligomers, or hetero-oligomeric assemblies. For multimer prediction, consider AlphaFold-Multimer.

  3. Accuracy vs. AlphaFold2: ESMFold achieves competitive but generally lower accuracy compared to AlphaFold2, particularly for:

    • Targets with few homologs (where MSA information would help)
    • Large proteins with complex domain arrangements
    • Proteins with unusual folds not well represented in training data

    On CASP15 targets, ESMFold's median GDT-TS is approximately 10-15 points below AlphaFold2 on difficult targets, but is comparable on easier targets with abundant homologous sequences.

  4. No ligand or cofactor modeling: The predicted structures do not include bound ligands, metal ions, or cofactors.

  5. Static prediction: ESMFold produces a single static structure and does not capture conformational dynamics or multiple states.

  6. No confidence calibration guarantee: While pLDDT scores are generally informative, they are not perfectly calibrated probability estimates. Regions with moderate pLDDT (50-70) require careful manual inspection.

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Simplest distributed training API. 4 lines to add distributed support to any PyTorch script. Unified API for DeepSpeed/FSDP/Megatron/DDP. Automatic device placement, mixed precision (FP16/BF16/FP8). Interactive config, single launch command. HuggingFace ecosystem standard.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huang-sh/DeepScience42026년 7월 15일 업데이트

ADMET property prediction for drug candidates. Full pharmacokinetic panel (Caco-2, PPB, clearance, CYP), toxicity (hERG, AMES, DILI), drug-likeness (Lipinski, QED), using RDKit descriptors and TDC models.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huang-sh/DeepScience42026년 7월 15일 업데이트

Interpretable ADMET analysis with mechanistic reasoning. Maps liabilities to structural causes and biological pathways. Based on CoTox (Park 2025) and DrugR (Liu 2026).

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huang-sh/DeepScience42026년 7월 15일 업데이트

aeon

무료

This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huang-sh/DeepScience42026년 7월 15일 업데이트

arboreto

무료

Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for large-scale datasets.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huang-sh/DeepScience42026년 7월 15일 업데이트

astropy

무료

Comprehensive Python library for astronomy and astrophysics. This skill should be used when working with astronomical data including celestial coordinates, physical units, FITS files, cosmological calculations, time systems, tables, world coordinate systems (WCS), and astronomical data analysis. Use when tasks involve coordinate transformations, unit conversions, FITS file manipulation, cosmological distance calculations, time scale conversions, or astronomical data processing.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

huang-sh/DeepScience42026년 7월 15일 업데이트

huang-sh의 스킬 모두 보기

이 스킬의 문제 신고