Git Product home page Git Product logo

Comments (3)

alsmadin01 avatar alsmadin01 commented on May 29, 2024

Hi @cfrioux, Hi @ArnaudBelcour,

This would be great! When will this option become available?

Best regards,

Noor Alsmadi

from metage2metabo.

cfrioux avatar cfrioux commented on May 29, 2024

Creating a list of targets for all the reachable compounds of the community (community scope) is not implemented yet.
I do not have time to properly include it in m2m these days, but, I've got a snippet to do it, if you're interested.

import sys
import json
from metage2metabo.sbml_management import create_species_sbml

# inputs
jsonfile = sys.argv[1]
output_file_sbml = sys.argv[2]

# read scope file and retrieve targets
with open(jsonfile, "r") as f:
    raw = json.load(f)

targets = raw["com_scope"]

# create a SBML with the targets
create_species_sbml(targets, output_file_sbml)

You write the above script in a file (let's say scope_to_targets.py) and call it this way:

python scope_to_targets.py community_analysis/comm_scopes.json community_analysis/comm_scopes.sbml

from metage2metabo.

ArnaudBelcour avatar ArnaudBelcour commented on May 29, 2024

Added in #61.

from metage2metabo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.