Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Post-translational modification analysis including phosphorylation, acetylation, and ubiquitination. Covers site localization, motif analysis, and quantitative PTM analysis. Use when analyzing phosphoproteomic data or other modification-enriched samples.
.claude/skills/bio-proteomics-ptm-analysis/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-05 | ✗→✓ | ▲ Improved | — | — |
| case-14 | ✗→✓ | ▲ Improved | — | — |
| case-18 | ✗→✓ | ▲ Improved | — | — |
| case-06 | ✗→✓ | ▲ Improved | — | — |
| case-15 | ✗→✓ | ▲ Improved | — | — |
Reference examples tested with: numpy 1.26+, pandas 2.2+, scipy 1.12+
Before using code patterns, verify installed versions match. If versions differ:
pip show <package> then help(module.function) to check signaturespackageVersion('<pkg>') then ?function_name to verify parametersIf code throws ImportError, AttributeError, or TypeError, introspect the installed package and adapt the example to match the actual API rather than retrying.
"Analyze phosphorylation sites from my proteomics data" → Identify and quantify post-translational modifications including phosphorylation, acetylation, and ubiquitination with site localization and motif analysis.
pyopenms for PTM-aware search, scipy for site-level statisticspythonPTM_MASSES = { 'Phosphorylation': 79.966331, # STY 'Oxidation': 15.994915, # M 'Acetylation': 42.010565, # K, N-term 'Methylation': 14.015650, # KR 'Dimethylation': 28.031300, # KR 'Trimethylation': 42.046950, # K 'Ubiquitination': 114.042927, # K (GlyGly remnant) 'Deamidation': 0.984016, # NQ 'Carbamidomethyl': 57.021464, # C (fixed mod from IAA) }
Goal: Extract high-confidence phosphorylation sites from MaxQuant output with proper filtering and site annotation.
Approach: Load the Phospho(STY)Sites table, remove reverse hits and contaminants, filter by localization probability, and construct gene-level site identifiers.
pythonimport pandas as pd import numpy as np # Phospho(STY)Sites.txt from MaxQuant phospho = pd.read_csv('Phospho (STY)Sites.txt', sep='\t', low_memory=False) # Filter valid sites phospho = phospho[ (phospho['Reverse'] != '+') & (phospho['Potential contaminant'] != '+') ] # Filter by localization probability phospho_confident = phospho[phospho['Localization prob'] >= 0.75] print(f'Confident sites (prob >= 0.75): {len(phospho_confident)}') # Extract site information phospho_confident['site'] = phospho_confident.apply( lambda r: f"{r['Gene names']}_{r['Amino acid']}{r['Position']}", axis=1 )
pythondef calculate_ascore_simple(peak_matches_with_ptm, peak_matches_without_ptm, total_peaks): '''Simplified A-score calculation''' if peak_matches_without_ptm >= peak_matches_with_ptm: return 0 p = peak_matches_with_ptm / total_peaks if total_peaks > 0 else 0 if p <= 0 or p >= 1: return 0 from scipy.stats import binom p_value = 1 - binom.cdf(peak_matches_with_ptm - 1, total_peaks, 0.5) return -10 * np.log10(p_value) if p_value > 0 else 100
pythonfrom collections import Counter def extract_motifs(sites_df, sequence_col, position_col, window=7): '''Extract sequence windows around modification sites''' motifs = [] for _, row in sites_df.iterrows(): seq = row[sequence_col] pos = row[position_col] - 1 # 0-indexed start = max(0, pos - window) end = min(len(seq), pos + window + 1) # Pad if at sequence boundary motif = '_' * (window - (pos - start)) + seq[start:end] + '_' * (window - (end - pos - 1)) motifs.append(motif) return motifs def count_amino_acids_by_position(motifs, center=7): '''Count amino acid frequencies by position''' position_counts = {i: Counter() for i in range(-center, center + 1)} for motif in motifs: for i, aa in enumerate(motif): position_counts[i - center][aa] += 1 return position_counts
rlibrary(MSstatsPTM) # Prepare input from MaxQuant ptm_input <- MaxQtoMSstatsPTMFormat( evidence = read.table('evidence.txt', sep = '\t', header = TRUE), annotation = read.csv('annotation.csv'), fasta = 'uniprot_human.fasta', mod_type = 'Phospho' ) # Process data processed_ptm <- dataSummarizationPTM(ptm_input, method = 'msstats') # Differential PTM analysis (adjusting for protein-level changes) ptm_results <- groupComparisonPTM(processed_ptm, contrast.matrix = comparison_matrix)
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 22 cases were attempted, and 18 counted toward the lift figure. The other 4 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +27 percentage points is the difference between those two pass rates over the 18 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.