peptide-properties-calculation

$npx mdskill add InternScience/scp/peptide-properties-calculation

Use the same `BiologyToolsClient` class as defined in the protein-properties-calculation skill.

SKILL.md

.github/skills/peptide-properties-calculationView on GitHub ↗
---
name: peptide-properties-calculation
description: Calculate peptide sequence properties including molecular weight, isoelectric point, extinction coefficient, and chemical formula.
license: MIT license
metadata:
    skill-author: PJLab
---

# Peptide Properties Calculation

## Usage

### 1. MCP Server Definition

Use the same `BiologyToolsClient` class as defined in the protein-properties-calculation skill.

### 2. Peptide Properties Calculation Workflow

This workflow calculates comprehensive physicochemical properties of peptide sequences for peptide drug design, synthesis planning, and characterization.

**Workflow Steps:**

1. **Calculate Peptide Properties** - Compute MW, pI, extinction coefficient, GRAVY, and chemical formula
2. **Analyze Multiple Peptides** - Compare properties across different sequences

**Implementation:**

```python
## Initialize client
HEADERS = {"SCP-HUB-API-KEY": "<your-api-key>"}

client = BiologyToolsClient(
    "https://scp.intern-ai.org.cn/api/v1/mcp/29/SciToolAgent-Bio",
    HEADERS
)

if not await client.connect():
    print("connection failed")
    exit()

print("=== Peptide Properties Calculation ===\n")

## Input: Peptide sequences to analyze
peptides = [
    ("All 20 amino acids", "ACDEFGHIKLMNPQRSTVWY"),
    ("Glycine repeat", "GGGGG"),
    ("Arginine repeat (positively charged)", "RRRRR"),
]

## Calculate properties for each peptide
for name, peptide in peptides:
    print(f"--- {name}: {peptide} ---")

    # Calculate peptide properties
    result = await client.client.call_tool(
        "CalculatorPeptideProperty",
        arguments={
            "sq": peptide,
            "aaCode": "0",          # Use single-letter code
            "nTerm": "",            # N-terminal modification (if any)
            "cTerm": "",            # C-terminal modification (if any)
            "disulphideBonds": ""   # Disulfide bonds (if any)
        }
    )
    result_data = client.parse_result(result)
    print(f"{result_data}\n")

## Additional analysis: Peptide weight calculation
print("=== Peptide Weight Calculation (Alternative Method) ===\n")
test_peptide = "ACDEFGHIKLMNPQRSTVWY"

result = await client.client.call_tool(
    "PeptideWeightCalculator",
    arguments={"sequence": test_peptide}
)
result_data = client.parse_result(result)
print(f"Peptide: {test_peptide}")
print(f"{result_data}\n")

## Additional analysis: Peptide formula calculation
print("=== Peptide Chemical Formula ===\n")

result = await client.client.call_tool(
    "PeptideFormulaCalculator",
    arguments={"sequence": test_peptide}
)
result_data = client.parse_result(result)
print(f"Peptide: {test_peptide}")
print(f"{result_data}\n")

await client.disconnect()
```

### Tool Descriptions

**SciToolAgent-Bio Server:**
- `CalculatorPeptideProperty`: Calculate comprehensive peptide properties
  - Args:
    - `sq` (str): Peptide sequence (single or three-letter code)
    - `aaCode` (str): "0" for single-letter, "1" for three-letter code
    - `nTerm` (str): N-terminal modification (e.g., "Acetyl", "")
    - `cTerm` (str): C-terminal modification (e.g., "Amide", "")
    - `disulphideBonds` (str): Disulfide bonds specification
  - Returns: MW, extinction coefficient, pI, GRAVY, chemical formula, sequence length

- `PeptideWeightCalculator`: Calculate peptide molecular weight
  - Args: `sequence` (str) - Peptide sequence
  - Returns: Molecular weight in Daltons

- `PeptideFormulaCalculator`: Calculate peptide chemical formula
  - Args: `sequence` (str) - Peptide sequence
  - Returns: Molecular formula (e.g., C₁₀₇H₁₅₉N₂₉O₃₀S₂)

### Input/Output

**Input:**
- `sq`: Peptide sequence in single-letter (ACDEFG...) or three-letter (Ala-Cys-Asp...) code
- `aaCode`: "0" for single-letter code, "1" for three-letter code
- `nTerm`: Optional N-terminal modification
- `cTerm`: Optional C-terminal modification
- `disulphideBonds`: Optional disulfide bond specification

**Output:**
- **Average Molecular Weight**: Mass in g/mol or Daltons
- **Extinction Coefficient**: For peptide quantification at 280nm (M⁻¹cm⁻¹)
- **Theoretical Isoelectric Point (pI)**: pH at which peptide has no net charge
- **GRAVY (Grand Average of Hydropathy)**: Hydrophobicity index
- **Chemical Formula**: Elemental composition (C, H, N, O, S)
- **Sequence Length**: Number of amino acid residues
- **Three-letter Representation**: Full peptide notation

### Use Cases

- Design peptide drugs and therapeutics
- Plan peptide synthesis strategies
- Calculate peptide concentrations spectrophotometrically
- Predict peptide solubility and stability
- Optimize peptide purification conditions
- Design peptide-based biosensors
- Analyze peptide fragments from mass spectrometry

### Terminal Modifications

Common N-terminal modifications:
- **Acetyl**: Blocks N-terminus, increases stability
- **Formyl**: Common in bacterial proteins
- **None**: Free amine group (default)

Common C-terminal modifications:
- **Amide**: Blocks C-terminus, increases stability
- **None**: Free carboxyl group (default)

Example with modifications:
```python
result = await client.client.call_tool(
    "CalculatorPeptideProperty",
    arguments={
        "sq": "ACDEFG",
        "aaCode": "0",
        "nTerm": "Acetyl",
        "cTerm": "Amide",
        "disulphideBonds": ""
    }
)
```

### GRAVY Interpretation

- **GRAVY < -0.5**: Very hydrophilic (highly soluble)
- **GRAVY -0.5 to 0**: Hydrophilic (soluble)
- **GRAVY 0 to +0.5**: Hydrophobic (may have solubility issues)
- **GRAVY > +0.5**: Very hydrophobic (likely membrane-associated or poorly soluble)

### Extinction Coefficient Usage

Calculate peptide concentration:
```
Concentration (M) = Absorbance at 280nm / (Extinction Coefficient × Path Length)
```

Where path length is typically 1 cm for standard cuvettes.

**Note**: Extinction coefficient is primarily determined by Trp (5500), Tyr (1490), and Cys-Cys (125) residues.

### Additional Peptide Tools Available

- `ConvertingPeptide2SMILES`: Convert peptide sequence to SMILES notation
- `ProteinIsoelectricPointCalculator`: Calculate pI for longer sequences
- `ComputeAffinity`: Predict peptide-protein binding affinity
- `OverlapPeptideLibraryDesign`: Design peptide libraries
- `AlanineScanningLibraryDesign`: Design mutagenesis libraries
- `TruncationLibraryDesign`: Design truncation variants

More from InternScience/scp

SkillDescription
admet_druglikeness_reportADMET & Drug-Likeness Report - Generate comprehensive ADMET and drug-likeness report: molecular properties, H-bond analysis, hydrophobicity, topology, and ADMET prediction. Use this skill for medicinal chemistry tasks involving calculate mol basic info calculate mol hbond calculate mol hydrophobicity calculate mol topology pred molecule admet. Combines 5 tools from 2 SCP server(s).
affinity_maturationAffinity Maturation Pipeline - Affinity maturation: compute binding affinity, predict mutations, compute hydrophilicity, and predict drug-target interaction. Use this skill for antibody engineering tasks involving ComputeAffinityCalculator zero shot sequence prediction ComputeHydrophilicity PredictDrugTargetInteraction. Combines 4 tools from 3 SCP server(s).
alanine_scanning_pipelineAlanine Scanning Mutagenesis Pipeline - Alanine scanning: design scan, compute properties for each mutant, predict interactions, and compare. Use this skill for protein biochemistry tasks involving AlanineScanningDesigner ComputeProtPara PredictDrugTargetInteraction calculate protein sequence properties. Combines 4 tools from 3 SCP server(s).
aliphatic_ring_analysisRing System Analysis - Analyze ring systems: count aliphatic carbocycles, analyze aromaticity, compute topology, and structure complexity. Use this skill for organic chemistry tasks involving GetAliphaticCarbocyclesNum AromaticityAnalyzer calculate mol topology calculate mol structure complexity. Combines 4 tools from 3 SCP server(s).
alphafold_structure_pipelineAlphaFold Structure Analysis Pipeline - AlphaFold pipeline: download predicted structure, predict pockets, extract sequence, and compute properties. Use this skill for computational biology tasks involving download alphafold structure run fpocket extract pdb sequence calculate pdb basic info. Combines 4 tools from 3 SCP server(s).
antibody_drug_developmentAntibody Drug Development - Develop antibody drug: target protein analysis, biotherapeutic lookup, protein properties, and interaction prediction. Use this skill for biologics tasks involving get uniprotkb entry by accession get biotherapeutic by name ComputeProtPara ComputeHydrophilicity. Combines 4 tools from 3 SCP server(s).
antibody_target_analysisAntibody-Target Analysis - Analyze an antibody target: UniProt protein info, InterPro domains, protein properties, and biotherapeutic data from ChEMBL. Use this skill for immunology tasks involving get uniprotkb entry by accession query interpro ComputeProtPara get biotherapeutic by name. Combines 4 tools from 4 SCP server(s).
atc_drug_classificationATC Drug Classification Lookup - Look up drug in ATC classification: ChEMBL ATC class, FDA drug info, PubChem compound, and mechanism of action. Use this skill for pharmacology tasks involving get atc class by level5 get mechanism of action by drug name get compound by name get drug by name. Combines 4 tools from 3 SCP server(s).
atmospheric-science-calculationsCalculate atmospheric parameters including Coriolis parameter, geostrophic wind, heat index, potential temperature, and dewpoint for meteorology and climate science.
binding_site_characterizationBinding Site Characterization - Characterize binding sites: predict pockets with fpocket and P2Rank, get binding site info from ChEMBL, and visualize. Use this skill for structural biology tasks involving run fpocket pred pocket prank get binding site by id visualize protein. Combines 4 tools from 3 SCP server(s).