Skip to content

Commit

Permalink
Modify function names
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasSompairac committed Dec 8, 2017
1 parent cac503b commit c92697d
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [mets, id] = findMetFromCompartMap(map, compartment)
function [mets, id] = findMetsFromCompartInMap(map, compartment)
% Finds all the metabolites and their names in the map structure for
% a compartment of interest.
%
Expand Down
2 changes: 1 addition & 1 deletion src/visualization/metabolicCartography/findMetsInMap.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [metID] = findMetIDs(map, metList)
function [metID] = findMetsInMap(map, metList)
% Finds metabolites indices in a CellDesigner map for a given list of names
%
% USAGE:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [rxns, id] = findRxnFromCompartMap(map, compartment)
function [rxns, id] = findRxnsFromCompartInMap(map, compartment)
% Finds all the reactions and their names in the map structure for
% a compartment of interest.
%
Expand All @@ -11,7 +11,7 @@
% compartment: Compartment of interest (e.g.: '[m]','[n]','[e]',etc.)
%
% OUTPUTS:
% mets: List of reaction names
% rxns: List of reaction names
% id: Reactions indexes
%
% .. Authors:
Expand Down
6 changes: 3 additions & 3 deletions src/visualization/metabolicCartography/findRxnsInMap.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [rxnID, rxnIDref] = findRxnIDs(map, rxnList)
function [rxnID, rxnIDref] = findRxnsInMap(map, rxnList)
% Finds reaction indices in a CellDesigner map from a list of names
%
% USAGE:
Expand All @@ -18,10 +18,10 @@
% - N.Sompairac - Institut Curie, Paris, 11/10/2017

if (iscell(rxnList))
[~,rxnID] = ismember(rxnList,map.rxnName);
[~,rxnID] = ismember(rxnList, map.rxnName);
rxnIDref = map.rxnID(rxnID);
else
rxnID = find(strcmp(map.rxnName,rxnList));
rxnID = find(strcmp(map.rxnName, rxnList));
if (isempty(rxnID))
rxnID = 0;
rxnIDref = {};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
function [listRxns] = findRxnsPerType(map, rxnType)
function [listRxns] = findRxnsPerTypeInMap(map, rxnType)
% Finds reaction names based on the type of reactions in the map. Useful
% to look for transport, catalysis or simple state_transition.
%
Expand Down

0 comments on commit c92697d

Please sign in to comment.