Skip to content

farid-zare/COBRA.tutorials

 
 

Repository files navigation

COBRA Tutorials

A template for generating a new tutorial is provided here.

Overview

The COBRA.tutorials repository exists to collect and maintain tutorials for developed and published constraint-based genome-scale modelling methods and studies. Its purpose is to provide clear, reproducible instructional material that demonstrates how new algorithms, workflows, and analysis techniques can be applied within the COBRA modelling framework. By centralising these tutorials, the repository supports both new and experienced users in learning, comparing, and adopting state-of-the-art constraint-based modelling approaches.

Repository structure

Tutorials are here to get you started with using The COBRA Toolbox. The tutorials are grouped according to the src/ folder structure:

All tutorials are provided in these formats: .mlx, .m, and .html.

How the Continuous Integration (CI) System Works

The COBRA.tutorials repository uses an automated continuous integration (CI) workflow. When a contributor pushes a new or updated .mlx tutorial to the repository:

  1. The CI pipeline is automatically triggered.
  2. The .mlx file is converted into two formats: - .m (MATLAB script) - .html (web-friendly version)
  3. These generated files are published to the COBRA Toolbox website, making the tutorial immediately accessible to users.

The diagram below illustrates this workflow:

COBRA Tutorials CI Workflow

Contribute a new tutorial or modify an existing tutorial

A template for generating a new tutorial is provided here.

There are two ways to contribute to the tutorials:

A) Contribute using git (via command line)

Fork and checkout your branch

  1. Fork the COBRA.tutorials repository on Github.

  2. Clone the forked repository to a directory of your choice:

    git clone git@github.com:<userName>/COBRA.tutorials.git fork-COBRA.tutorials.git
  3. Change to the directory:

    cd fork-COBRA.tutorials.git/
  4. Set the upstream to the opencobra/COBRA.tutorials repository:

    git remote add upstream git@github.com:opencobra/COBRA.tutorials.git
  5. Fetch from the upstream repository:

    git fetch upstream
  6. Checkout a new branch from upstream/master:

    git checkout -b master upstream/master
  7. Now, make your changes to the tutorial in MATLAB.

Submit your changes and open a pull request to the master branch

  1. Once you are done making changes, add the files to your branch (tutorial_<yourFile> refers to the tutorial name). Make sure to add the .mlx format of the tutorial.

    git add tutorial_<yourFile>.mlx
    git commit -m "Changes to tutorial_<yourFile>"
  2. Push your commits on <yourBranch> to your fork:

    git push origin <yourBranch>
  3. Browse to your fork on:

    • https://www.github.com/<yourUserName>/COBRA.tutorials
  4. Click on Compare & Pull Request.

  5. Confirm the target branch is master.

  6. Submit your pull request.

  7. Wait until your pull request is accepted.

About

Repository of tutorials for The COBRA Toolbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • MATLAB 98.2%
  • Wolfram Language 1.5%
  • Other 0.3%