From 99cd97e08d81222fc076b2f674b0544d6d1dd52c Mon Sep 17 00:00:00 2001
From: Mohammed Tanash <mtanash2@unl.edu>
Date: Fri, 29 Apr 2022 06:13:15 -0500
Subject: [PATCH] Add the guide for Matlab CobraToolbox in the Application
 Specific Guides page

---
 .../running_matlab_cobratoolbox.md            | 43 +++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 content/applications/app_specific/running_matlab_cobratoolbox.md

diff --git a/content/applications/app_specific/running_matlab_cobratoolbox.md b/content/applications/app_specific/running_matlab_cobratoolbox.md
new file mode 100644
index 00000000..71356bc7
--- /dev/null
+++ b/content/applications/app_specific/running_matlab_cobratoolbox.md
@@ -0,0 +1,43 @@
++++
+title = "Install and Running Matlab CobraToolbox"
+description = "How to install and run Matlab CobraToolbox"
++++
+
+## This document provides the steps to install and run MATLAB CobraToolbox in the cluster.
+
+### INSTALLATION GUIDE    
+After logging into the cluster, load the requierd GIT module.
+
+{{< highlight bash >}}
+$ module load git/2.22
+{{< /highlight >}}
+
+Download Cobra toolbox in your local $WORK directory by using the following command
+
+{{< highlight bash >}}
+$ git clone --depth=1 https://github.com/opencobra/cobratoolbox.git cobratoolbox
+{{< /highlight >}}
+
+After the download been finished, a directory named "cobratoolbox" should be created in your WORK directory.
+
+Enter the directory "cobratoolbox" using the following command
+{{< highlight bash >}}
+$ cd cobratoolbox
+{{< /highlight >}}
+
+Then run the following command for uploading the required modules for cobratoolbox
+{{< highlight bash >}}
+$ git submodule update --init
+{{< /highlight >}}
+
+Then run Matlab using the following command
+{{< highlight bash >}}
+$ matlab 
+{{< /highlight >}}
+
+Finally run the following command to test CobraToolbox using the following Matlab command
+```Matlab
+>> initCobraToolbox
+```
+ 
+NOTE: you need to install CobraToolbox under your WORK directory NOT HOME directory. Because HOME directories are read-only from the compute nodes.
-- 
GitLab