मुख्य सामग्री पर जाएँ
Skillpedia
एनालिसिस और स्प्रेडशीट15k · #11055

gsmm-builder

यह क्या करती है

यह स्किल किसी जीव के metabolism का मॉडल बनाती या लोड करती है। यह उन शोधकर्ताओं के लिए है जिन्हें flux विश्लेषण चलाने के लिए मॉडल चाहिए।

कब इस्तेमाल करें

  • ✓जब आप BiGG डेटाबेस जैसे ज्ञात metabolic मॉडल को लोड करना चाहते हैं।
  • ✓जब आपको शून्य से एक छोटा metabolic मॉडल बनाना है।
  • ✓जब आप विकास माध्यम सेट करना और बाद के विश्लेषण के लिए मॉडल फ़ाइल सहेजना चाहते हैं।

Skill का लिंक

https://github.com/aiming-lab/AutoResearchClaw/blob/main/external/agents/Biology-Agent/skills/gsmm-builder/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/aiming-lab/AutoResearchClaw/blob/main/external/agents/Biology-Agent/skills/gsmm-builder/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“BiGG से iJO1366 E. coli मॉडल लोड कीजिए, ग्लूकोज़ न्यूनतम माध्यम सेट कीजिए, और उसे JSON में सहेजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट या तो एक संकलित मॉडल फ़ाइल लोड करता है, या metabolites और reactions से एक बनाता है। फिर वह माध्यम की सीमाएँ और उद्देश्य सेट करता है, और मॉडल को JSON फ़ाइल में लिखता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Overview

The gsmm-builder skill constructs or loads genome-scale metabolic models (GSMMs) in the COBRApy framework. It is the entry point for every metabolic flux analysis pipeline. Output is a validated COBRApy Model object serialized to a JSON file ready for downstream FBA and flux analysis.

GSMMs encode every known metabolic reaction in an organism as a stoichiometric matrix. Constraints (reaction bounds, medium composition, objective function) turn the model into a solvable linear program.


Workflow

Step 1 — Decide: Load Existing or Build from Scratch

Option A: Load a curated BIGG model

import cobra
import cobra.io

# Load E. coli iJO1366 from a local SBML file
model = cobra.io.read_sbml_model("iJO1366.xml")

# Or load from a pre-downloaded JSON file
model = cobra.io.load_json_model("iJO1366.json")

print(f"Loaded {model.id}: {len(model.reactions)} reactions, "
      f"{len(model.metabolites)} metabolites, {len(model.genes)} genes")

Key BIGG model IDs:

  • iJO1366 — E. coli K-12 MG1655 (2583 reactions)
  • Recon3D — Homo sapiens (13543 reactions)
  • iMM904 — S. cerevisiae (1577 reactions)
  • iNJ661 — M. tuberculosis (1049 reactions)

Option B: Build a minimal model from scratch

from cobra import Model, Metabolite, Reaction

model = Model("toy_glycolysis")

# Define metabolites with compartments and formula
glc_e = Metabolite("glc__D_e", formula="C6H12O6", name="D-Glucose",
                   compartment="e")
glc_c = Metabolite("glc__D_c", formula="C6H12O6", name="D-Glucose",
                   compartment="c")
atp_c = Metabolite("atp_c",  formula="C10H12N5O13P3", name="ATP",
                   compartment="c")
biomass = Metabolite("biomass", formula="", name="Biomass", compartment="c")

# Build reactions
ex_glc = Reaction("EX_glc__D_e")
ex_glc.lower_bound = -10.0  # uptake (negative = import)
ex_glc.upper_bound = 0.0
ex_glc.add_metabolites({glc_e: 1.0})

transport = Reaction("GLCt")
transport.lower_bound = -1000.0
transport.upper_bound = 1000.0
transport.add_metabolites({glc_e: -1.0, glc_c: 1.0})

# Stoichiometry: 1 glucose + ADP -> 2 ATP (simplified glycolysis)
glycolysis = Reaction("GLYCOLYSIS")
glycolysis.lower_bound = 0.0
glycolysis.upper_bound = 1000.0
glycolysis.add_metabolites({glc_c: -1.0, atp_c: 2.0})

biomass_rxn = Reaction("BIOMASS")
biomass_rxn.lower_bound = 0.0
biomass_rxn.upper_bound = 1000.0
biomass_rxn.add_metabolites({atp_c: -10.0, biomass: 1.0})

model.add_reactions([ex_glc, transport, glycolysis, biomass_rxn])

Step 2 — Set the Objective Function

# Set biomass as the optimization target
model.objective = "BIOMASS_Ec_iJO1366_core_53p95M"  # reaction ID string

# Verify objective is set
print(model.objective.to_json())

Step 3 — Define the Growth Medium

# M9 minimal medium with glucose (aerobic)
M9_MEDIUM = {
    "EX_glc__D_e": -10.0,   # glucose uptake, mmol/gDW/h
    "EX_o2_e":    -20.0,    # oxygen (aerobic)
    "EX_nh4_e":  -1000.0,   # ammonium (unlimited)
    "EX_pi_e":   -1000.0,   # phosphate (unlimited)
    "EX_so4_e":  -1000.0,   # sulfate (unlimited)
    "EX_h2o_e":  -1000.0,   # water (unlimited)
    "EX_h_e":    -1000.0,   # protons (unlimited)
}

# Apply medium: close all exchange reactions first, then open selected
medium = model.medium  # returns dict of current open exchange lb magnitudes
for rxn_id, lb in M9_MEDIUM.items():
    if rxn_id in model.reactions:
        model.reactions.get_by_id(rxn_id).lower_bound = lb

# Anaerobic: set O2 uptake to zero
# model.reactions.get_by_id("EX_o2_e").lower_bound = 0.0

Step 4 — Export Model

import cobra.io

cobra.io.save_json_model(model, "output/my_model.json")
cobra.io.write_sbml_model(model, "output/my_model.xml")
print("Model saved.")

Key Conventions

Convention Detail
Metabolite ID format <bigg_id>_<compartment> e.g. glc__D_c, atp_m
Compartment codes c cytosol, e extracellular, m mitochondria, n nucleus
Exchange reaction prefix EX_ e.g. EX_glc__D_e
Transport reaction prefix t or species-specific e.g. GLCt, PGI
Uptake bound sign Negative lower bound = import (e.g. lb = -10)
Secretion bound sign Positive upper bound = export (e.g. ub = 1000)
Biomass objective Reaction with ID containing BIOMASS or Growth
Aerobic medium EX_o2_e lb = -20 (mmol/gDW/h)
Anaerobic medium EX_o2_e lb = 0
Default irrevers
अक्सर पूछे जाने वाले सवाल

BiGG क्या है?

संकलित metabolic मॉडलों का डेटाबेस, जिन्हें यह स्किल लोड कर सकती है।

क्या मैं शून्य से शुरू कर सकता हूँ?

हाँ। स्किल आपके अपने metabolites और reactions से एक छोटा मॉडल बना सकती है।

माध्यम सेटिंग क्या करती है?

यह सीमित करती है कि मॉडल कौन-से पोषक तत्व ले सकता है, जिससे विकास की भविष्यवाणियाँ बदलती हैं।

जानकारी

लेखक का मूल विवरण

Build or load a genome-scale metabolic model (GSMM) using COBRApy. Covers loading from BIGG, constructing minimal models from scratch, setting medium constraints, and exporting validated .json model files.

repo: aiming-lab/AutoResearchClaw

लोकप्रियता

GitHub स्टार
15k
रैंकिंग में स्थान
#11055
लाइसेंस
MIT
अपडेट की गई
19/8/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

a-evolve

15k

बार-बार चलने पर विफलताओं का निदान करके, दोहराती त्रुटियों से लक्षित स्किल बनाकर, और आगे के लिए सबक दर्ज करके आपके एजेंट को बेहतर बनने में मदद करती है।

AI और एजेंटएजेंट

biology-biopython

15k

Biopython से DNA, RNA और प्रोटीन अनुक्रमों के साथ काम करने में आपके एजेंट की मदद करती है, जिसमें फ़ाइल पार्सिंग, अनुक्रम गणनाएँ, BLAST खोजें और डेटाबेस तक पहुँच शामिल है।

डेटाएनालिसिस और स्प्रेडशीट

chemistry-rdkit

15k

RDKit से SMILES स्ट्रिंग में लिखे अणुओं का विश्लेषण करने में आपके एजेंट की मदद करती है, जिसमें descriptors, fingerprints, समानता और substructure खोज शामिल हैं।

डेटाएनालिसिस और स्प्रेडशीट

hypothesis-formulation

15k

एक अवलोकन को परखने योग्य परिकल्पनाओं में बदलने में आपके एजेंट की मदद करती है, जिनमें प्रतिस्पर्धी व्याख्याएँ और स्पष्ट भविष्यवाणियाँ हों जो उन्हें गलत साबित कर सकें।

लेखन और डॉक्यूमेंटरिसर्च

मिलती-जुलती skills