-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.m
More file actions
38 lines (30 loc) · 1.37 KB
/
main.m
File metadata and controls
38 lines (30 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
%% LOGIC MODEL
%% 2018
clc; % Clear the command window.
close all; % Close all figures (except those of imtool.)
clear; % Erase all existing variables. Or clearvars if you want.
addpath('Functions'); % path to functions that are used
warning('off'); % Don't show all the warnings
set(groot,'defaulttextinterpreter','latex');
set(groot, 'defaultAxesTickLabelInterpreter','latex');
set(groot, 'defaultLegendInterpreter','latex');
% RULES
% metabolite(glucose level: no(0) high(1), external on/off, nitrogen level: no(0) high(1))
% proteinname(presence, localization nucleus(2); cytosol(1); membrane(0); phosphorylation, guanylation non(0); GDP(1);GTP(2), dna bound)
% genes(promotor on/off)
%% Produce data for a defined glucose, nitrogen combination
% choose the folder name where the data is saved
foldername = '-NitrTo+Nitr-Gluc+Crosstalk';
% define all knockouts, i.e. {'Snf1', 'Tor1'}
knockouts = {};
% define all active crosstalks out of 13, i.e.
% crosstalks = [0 0 0 0 0 0 0 0 0 0 0 0 0];
crosstalks = [1 1 1 1 1 1 1 1 1 1 1 1 1];
% set glucose and nitrogen level sequence
% both have to have the same length, and each entry corresponds to one
% 'time step'
glucoseLevels = [0 0];
nitrogenLevels = [0 1];
% run logic model and create txt files and pictures with data in the
% defined folder
runLogicModel(glucoseLevels, nitrogenLevels, knockouts, crosstalks, foldername);