Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
syarra committed Dec 11, 2017
1 parent c36388e commit ccbf875
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 42 deletions.
16 changes: 8 additions & 8 deletions src/visualization/metabolicCartography/unifyMetabolicMapCD.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
% map2: Map with grey reactions colour, width 1 and white nodes colour.
%
% .. Authors: - J.Modamio LCSB, Belval, Luxembourg. 19.08.2017

map2 = map;
for i = 1:length(map2.rxnName)
map2.rxnColor{i,1} = 'FFDCDCDC';
map2.rxnWidth{i,1} = 1;

for i = 1:length(map2.rxnName)
map2.rxnColor{i, 1} = 'FFDCDCDC';
map2.rxnWidth{i, 1} = 1;
end
for j = 1:length(map2.molColor)
map2.molColor{j,1} = 'FFFFFFFF';
map2.molColor{j, 1} = 'FFFFFFFF';
end
end

end
68 changes: 34 additions & 34 deletions src/visualization/metabolicCartography/unifyMetabolicPPImapCD.m
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
%
% OUTPUT:
% map2: Map with grey reactions colour, width 1 and white nodes colour.
% Change colour complex to white
% Change colour complex to white
%
% .. Authors:
% - J.Modamio LCSB, Belval, Luxembourg. 19.08.2017 LCSB. Belval. Luxembourg
Expand All @@ -20,49 +20,49 @@
map2 = map;

% Change reaction colour to ligth grey and and width to 1.0
for i = 1:length(map2.rxnName)
map2.rxnColor{i,1} = 'FFDCDCDC';
map2.rxnWidth{i,1} = 1;
for i = 1:length(map2.rxnName)
map2.rxnColor{i, 1} = 'FFDCDCDC';
map2.rxnWidth{i, 1} = 1;
end
% Change molecules color to white
% Change molecules color to white
for j = 1:length(map2.molColor)
map2.molColor{j,1} = 'FFFFFFFF';
end
% Change complex colour to white
map2.molColor{j, 1} = 'FFFFFFFF';
end
% Change complex colour to white
for c = 1:length(map2.complexColor)
map2.complexColor{c,1} = 'FFFFFFFF';
end
map2.complexColor{c, 1} = 'FFFFFFFF';
end

% Change reactions secondary links to light grey (products)
% and width to 1
index=find(~cellfun(@isempty, map2.rxnProductLineColor));
for t = 1:length(index)
if length(map2.rxnProductLineColor{t,1}) > 1
for d = 1:length(map2.rxnProductLineColor{t,1})
map2.rxnProductLineColor{t,1}{d,1} = 'FFDCDCDC';
map2.rxnProductLineWidth{t,1}{d,1} = 1;
end
elseif length(map2.rxnProductLineColor{t,1}) == 1
map2.rxnProductLineColor{t,1}{1,1} = 'FFDCDCDC';
map2.rxnProductLineWidth{t,1}{1,1} = 1;
end
end
index = find(~cellfun(@isempty, map2.rxnProductLineColor));
for t = 1:length(index)
if length(map2.rxnProductLineColor{t, 1}) > 1
for d = 1:length(map2.rxnProductLineColor{t, 1})
map2.rxnProductLineColor{t, 1}{d, 1} = 'FFDCDCDC';
map2.rxnProductLineWidth{t, 1}{d, 1} = 1;
end
elseif length(map2.rxnProductLineColor{t, 1}) == 1
map2.rxnProductLineColor{t, 1}{1, 1} = 'FFDCDCDC';
map2.rxnProductLineWidth{t, 1}{1, 1} = 1;
end
end
clear id index

% Change reactions secondary links to light grey (reactants)
% and width to 1
index=find(~cellfun(@isempty, map2.rxnReactantLineColor));
for r = 1:length(index)
if length(map2.rxnReactantLineColor{r,1}) > 1
for p = 1:length(map2.rxnReactantLineColor{r,1})
map2.rxnReactantLineColor{r,1}{p,1} = 'FFDCDCDC';
map2.rxnReactantLineWidth{r,1}{p,1} = 1;
index = find(~cellfun(@isempty, map2.rxnReactantLineColor));
for r = 1:length(index)
if length(map2.rxnReactantLineColor{r, 1}) > 1
for p = 1:length(map2.rxnReactantLineColor{r, 1})
map2.rxnReactantLineColor{r, 1}{p, 1} = 'FFDCDCDC';
map2.rxnReactantLineWidth{r, 1}{p, 1} = 1;
end
elseif length(map2.rxnReactantLineColor{r,1}) == 1
map2.rxnReactantLineColor{r,1}{1,1} = 'FFDCDCDC';
map2.rxnReactantLineWidth{r,1}{1,1} = 1;
elseif length(map2.rxnReactantLineColor{r, 1}) == 1
map2.rxnReactantLineColor{r, 1}{1, 1} = 'FFDCDCDC';
map2.rxnReactantLineWidth{r, 1}{1, 1} = 1;
end
end
clear id index
end

end

0 comments on commit ccbf875

Please sign in to comment.