Git Product home page Git Product logo

rheareactions.jl's Introduction

RheaReactions.jl

repostatus-img

This is a simple package you can use to query Rhea reactions and associated annotations. Its primary use is in reconstructing metabolic models. It caches all requests by default, speeding up repeated calls where appropriate.

using RheaReactions # load module

get_reaction(11364) # Rhea reaction ID 11364

You can also get the metabolites associated with that reaction:

# [(coefficient, metabolite), ...] 
coeff_mets = get_reaction_metabolites(11364) # Rhea reaction ID 11364

And look at each metabolite individually:

coeff_mets[1][2] # metabolite

You can also look for all reactions that have a certain set of metabolite substrates and products. This function looks for all reactions that have both CHEBI:29985 (L-glutamate) and CHEBI:58359 (L-glutamine) on opposite sides of the reaction:

substrate_ids = [29985,]
product_ids = [58359,]
get_reactions_with_metabolites(
    substrate_ids,
    product_ids,
) # NB: not cached!

You can also look for Rhea reactions associated with a specific Uniprot ID:

get_reactions_with_uniprot_id("P30085")

You can look for all Rhea reaction IDs that map to a specific EC number:

get_reactions_with_ec("2.5.1.49")

Rhea reactions are typically broken into quartets.: one reference reaction, two directional reactions, and one bidirectional reaction. You can find all four reactions given any single reaction:

get_reaction_quartet(11364) # Rhea reaction ID 11364

You can test the package with:

] test

Troubleshooting

The cache can be source of subtle issues. If you get errors or unexpected behavior do:

  1. clear_cache!(),
  2. Restart the Julia session. If you still get errors, please file an issue!

rheareactions.jl's People

Contributors

stelmo avatar

Stargazers

 avatar  avatar

Watchers

 avatar

rheareactions.jl's Issues

TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.

If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.

If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

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.