Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
0253a3e
Merge branch 'master' into egem-lf
fanela Jun 28, 2019
addc226
Removed 2 figures that didn't belong in scripts folder
fanela Jun 28, 2019
e562993
Round a workaround for deleteModelGenes error due to min model
fanela Jun 28, 2019
1b0a576
Made bulk methylation model compatible. Added 2 reactions to min.
fanela Jul 1, 2019
28ff648
Pulled master. Modified MATLAB_CODE_methyl & methylVariables
fanela Jul 2, 2019
cbe6502
Forgot to delete all conflict markers. Now they're deleted.
fanela Jul 2, 2019
4d3a40f
Shortened names of variables that were long (4 variables)
fanela Jul 2, 2019
da8f33c
Save work before revert
fanela Jul 3, 2019
1cc18d8
Revert "Save work before revert"
fanela Jul 3, 2019
ca73666
Discovered MATLAB_CODE used data from Ludlow 2016 not 2015. Saving ch…
fanela Jul 3, 2019
9fe4d5e
Using Rees 2016 data. Changed list of inhibitors to Me inhibitors
fanela Jul 3, 2019
0efd35a
Moved block of code to beginning of last module. Aligned variable names.
fanela Jul 5, 2019
9722468
MATLAB_CODE_me contains only last module of MATLAB_CODE. Wrote code t…
fanela Jul 8, 2019
b6bded9
Put all folders of figures into 1 folder
fanela Jul 8, 2019
7a21ecd
Ran min_model through MATLAB_CODE_me using 3 more epsilon_methylation…
fanela Jul 10, 2019
b4e0db1
Attempt to push on Fri 7/12
fanela Jul 12, 2019
ed8d0a8
First time pushing to different remote: egem-lf
fanela Jul 12, 2019
5f11c16
2nd or 3rd commit after hiatus from GitHub. Today, formatted results …
fanela Jul 12, 2019
34c1b31
Saved significant reactions of fluxes_allrxns output
fanela Jul 17, 2019
1d4617f
From Sriram lab's desktop. Saved new variable grate_1FBA_allRxns.
fanela Jul 17, 2019
aaef790
Merged 2 local branches of egem2remote egem2; one o…
fanela Jul 17, 2019
422e738
Saved significant reactions of 4 mil loop
fanela Jul 17, 2019
11c493c
Commit from desktop. Added section for finding reactions with sig p-v…
fanela Jul 17, 2019
f5336a6
Fixed some variables. Ran a few more simulations, and now have FBA fl…
fanela Jul 19, 2019
fff7c00
Accidentally deleted grate_1FBA_allRxns again. Copied saved variable …
fanela Jul 19, 2019
eddf8a9
Last day of SURE. Wrote code to check if all flux for a reaction were…
fanela Jul 19, 2019
17dbdea
Changed name of the 1 subfolder in VariablesSaved
fanela Jul 22, 2019
970a15d
Wed 7/24
fanela Jul 24, 2019
742c1ab
Pulled PC updates to desktop & resolved conflicts.
fanela Jul 24, 2019
6b6a6bf
Sep 9
fanela Sep 25, 2019
b7db698
Merge branch 'egem2' of https://github.com/sriram-lab/egem into egem2
fanela Sep 25, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added git
Empty file.
Binary file added matlab/MeCorr/CorrScatter1E-2/BIX.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matlab/MeCorr/CorrScatter1E-2/BRD.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matlab/MeCorr/CorrScatter1E-2/CBB.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matlab/MeCorr/CorrScatter1E-2/GSK.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matlab/MeCorr/CorrScatter1E-2/QW-BI.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matlab/MeCorr/CorrScatter1E-2/UNC0321.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matlab/MeCorr/CorrScatter1E-2/UNC0638.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added matlab/MeCorr/CorrScatter1E-2/methylstat.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
491 changes: 0 additions & 491 deletions matlab/MeCorr/MATLAB_CODE.asv

This file was deleted.

404 changes: 404 additions & 0 deletions matlab/MeCorr/MATLAB_CODE_allrxns.asv

Large diffs are not rendered by default.

419 changes: 419 additions & 0 deletions matlab/MeCorr/MATLAB_CODE_allrxns.m

Large diffs are not rendered by default.

318 changes: 318 additions & 0 deletions matlab/MeCorr/MATLAB_CODE_me.m

Large diffs are not rendered by default.

172 changes: 91 additions & 81 deletions matlab/MeCorr/MATLAB_CODE_methyl.m

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/analysis.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/fluxesAll_1FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/fluxesAll_1pFBA.mat
Binary file not shown.
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/fluxesAll_2FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/fluxesAll_3FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/fluxesAll_3pFBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/fluxesAll_4FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/fluxesAll_5FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/fluxesAll_6FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/intersectingRxns.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnFlux_1FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnFlux_1pFBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnS_4FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_1FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_1FBA.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_1pFBA.mat
Binary file not shown.
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_2FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_2FBA.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_3FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_3FBA.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_3pFBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_3pFBA.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_4FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_4FBA.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_5FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_5FBA.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_6FBA.mat
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/sigRxnT_6FBA.xlsx
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/~$sigRxnT_1pFBA.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/~$sigRxnT_2FBA.xlsx
Binary file not shown.
Binary file added matlab/MeCorr/VariablesSaved/~$sigRxnT_6FBA.xlsx
Binary file not shown.
3 changes: 2 additions & 1 deletion matlab/MeCorr/constrain_flux_regulation.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
function [fluxstate_gurobi,grate, solverobj] = constrain_flux_regulation(model1,onreactions,offreactions,kappa,rho,epsilon,mode,epsilon2,minfluxflag)
function [fluxstate_gurobi, grate, solverobj] = constrain_flux_regulation(model1,...
onreactions,offreactions,kappa,rho,epsilon,mode,epsilon2,minfluxflag)

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
if (~exist('mode','var')) || (isempty(mode))
Expand Down
39 changes: 23 additions & 16 deletions matlab/MeCorr/methylVariables.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
% Plot correlation values between AUC of growth inhibition of cell
% lines and methylation flux

% Workflow: 1)Run make_eGEM 2)Run this script 3)Assign epsilon_methylation
% 3)Run last module of MATLAB_CODE_methyl (3 sections)
% Workflow: 1)Run make_eGEM
cd '.\..\MeCorr';
% 2)Run methylVariables 3)Assign epsilon_methylation 4)Run last module of
...MATLAB_CODE_methyl (3 sections)

% initCobraToolbox;
% changeCobraSolver('gurobi');
Expand All @@ -21,16 +23,21 @@
%index_DNMTi = [2 , 78, 181, 402, 444]; % DNMT = DNA MT

% Get all 3 rows of s3 for drug_auc_me. Replaces drug_auc_expt
drug_auc_me= zeros(664*8, 3);
% 7/1: drug_auc_expt has all drugs tested. drug_auc_me only has methyl drugs
% advantage: less to search. matlab_code already extracts interested drugs
% (variable hmei_auc_expt_me).
drug_auc_me= s3;

% drug_auc_me= zeros(664*8, 3);
% drug_auc_me(1:597, :)= s3(1293:1889, :); % drug 3
% drug_auc_me(665:1291, :)= s3(96133:96759, :); %drug 178
% drug_auc_me(1328:1766, :)= s3(149039:149477, :); %drug 280
% drug_auc_me(1992:2435, :)= s3(201699:202142, :); %drug 374
% drug_auc_me(2656:3302, :)= s3(204605:205251, :); %drug 380
% drug_auc_me(3320:3630, :)= s3(228209:228519, :); %drug 421
% drug_auc_me(3984:4606, :)= s3(232799:233421, :); %drug 431
% drug_auc_me(4648:4718, :)= s3(257167:257237, :); %drug 475

drug_auc_me(1:597, :)= s3(1293:1889, :); % drug 3
drug_auc_me(665:1291, :)= s3(96133:96759, :); %drug 178
drug_auc_me(1328:1766, :)= s3(149039:149477, :); %drug 280
drug_auc_me(1992:2435, :)= s3(201699:202142, :); %drug 374
drug_auc_me(2656:3302, :)= s3(204605:205251, :); %drug 380
drug_auc_me(3320:3630, :)= s3(228209:228519, :); %drug 421
drug_auc_me(3984:4606, :)= s3(232799:233421, :); %drug 431
drug_auc_me(4648:4718, :)= s3(257167:257237, :); %drug 475
% Col 1 is drug id #, col 2 is cell line id #, col 3 is auc. Switch col 2
...and 3 to match drug_auc_expt
celllineid_tmp= drug_auc_me(:, 2);
Expand All @@ -44,14 +51,14 @@
drug_auc_me.Properties.VariableNames{'drug_auc_me3'}='index_ccl';

% Other variables to replace with methylation data
ctd2celllineidname_id_me= s2(:, 1);
ctd2clidname_id_me= s2(:, 1);

ctd2celllineidname_me= [s2(:,2), s2(:,4), s2(:,5)];
ctd2celllineidname_me.Properties.VariableNames{'cell_line_name'}='celllinenames_ccle1';
ctd2clidname_me= [s2(:,2), s2(:,4), s2(:,5)];
ctd2clidname_me.Properties.VariableNames{'cell_line_name'}='celllinenames_ccle1';

s1= readtable('Data\Ludlow2015_SmallMolecInformer.xlsx','Sheet','s1','Range','A:B');
ctd2compoundidname_id_me= s1(:, 1);
ctd2compoundidname_name_me= s1(:, 2);
ctd2cpdidname_id_me= s1(:, 1);
ctd2cpdidname_name_me= s1(:, 2);

% Below: written into MATALB_CODE_methyl
% exptidcelllinemediamatch= array2table(exptidcelllinemediamatch);
Expand Down
Binary file added matlab/models/min.mat
Binary file not shown.
Binary file added matlab/models/min2SLC.mat
Binary file not shown.
Binary file removed matlab/scripts/6hm_1E-6.fig
Binary file not shown.
Binary file removed matlab/scripts/6hm_1E-6.jpg
Diff not rendered.
26 changes: 22 additions & 4 deletions matlab/scripts/make_eGEM.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
% @author: Scott Campit & Lauren Fane

% Initialize parameters
initCobraToolbox;
changeCobraSolver('gurobi');
x=input('Initialize Cobra Toolbox and change solver? "yes"/"no": ');
if x == "yes"
initCobraToolbox;
changeCobraSolver('gurobi');
elseif x == "no"
end

% Load AcGEM model (Shen et al., 2019)
load ./../shen-et-al/supplementary_software_code acetylation_model;
Expand Down Expand Up @@ -248,6 +252,20 @@
% 'checkDuplicate', 'true');
%same chemical rxn as H3K9 methylation -> should i add it? How do i
%distinguish between locations?
%% save

% Fill in empty reactions
min = addReaction(min,'SLC17A1','reactionName','Sodium/phosphate cotransporter 1',...
'reactionFormula','po4[e] + 3 na1[e] -> po4[c] + 3 na1[c]',...
'subSystem','Transport, Extracellular',...
'geneRule','(SLC17A1) or (SLC17A2) or (SLC17A3) or (SLC17A4)');
min = addReaction(min,'SLC17A3','reactionName','Sodium/phosphate cotransporter 4',...
'reactionFormula','po4[e] + 3 na1[e] -> po4[c] + 3 na1[c]',...
'subSystem','Transport, Extracellular',...
'geneRule','(SLC17A1) or (SLC17A2) or (SLC17A3) or (SLC17A4)');
%% save
% rename so that variable does not conflict with the function min
min = checkDuplicateRxn(min,'S',1,1);
save('./../models/min.mat', 'min');
%save('./../models/min.mat', 'min');
%save('./../models/min2SLC.mat', 'min');
min_model=min;
clearvars min
Empty file added python/tissue
Empty file.