cba_reduce_to_active_subnetwork
PURPOSE
[v,N_int,Es,network_act,constraints,ind_active,ind_met_active] = cba_reduce_to_active_subnetwork(v,N_int,Es,network,constraints)
SYNOPSIS
function [v,N_int,Es,network_act,constraints,ind_active,ind_met_active] = cba_reduce_to_active_subnetwork(v,N_int,Es,network,constraints)
DESCRIPTION
CROSS-REFERENCE INFORMATION
This function calls:
This function is called by:
- cba_adjust_fluxes CBA_ADJUST_FLUXES - Correct a flux mode to make it economical
- cba_feasible_cycle CBA_FEASIBLE_CYCLE - Check economical flux distribution (non-beneficial cycle criterion)
- cba_feasible_lp CBA_FEASIBLE_LP - Check flux mode for EFA feasibility and choose enzyme costs and thermodynamic forces
- cba_reconstruct_model CBA_RECONSTRUCT_MODEL - Build model from economical flux profile
- cba_reconstruct_model_OLD CBA_RECONSTRUCT_MODEL - Build model from economical flux profile
SOURCE CODE
0001 function [v,N_int,Es,network_act,constraints,ind_active,ind_met_active] = cba_reduce_to_active_subnetwork(v,N_int,Es,network,constraints)
0002
0003
0004
0005
0006
0007 eval(default('Es','[]','network','[]'));
0008
0009 epsilon_v_off = 10^-8;
0010
0011 ind_active = find(abs(v)>epsilon_v_off);
0012 v = v(ind_active);
0013 N_int = N_int(:,ind_active);
0014 N_int = N_int(find(sum(N_int~=0,2)),:);
0015
0016 if ~isempty(Es),
0017 Es = Es(ind_active,:);
0018 end
0019
0020 if ~isempty(network),
0021
0022 [network_act,ind_met_active] = network_choose(network,[],ind_active);
0023 end
0024
0025 if exist('constraints','var'),
0026 constraints = cba_constraints_reduce_to_active(constraints,ind_active,ind_met_active,network,network_act);
0027 else
0028 constraints = [];
0029 end
Generated on Fri 12-Feb-2016 20:18:22 by m2html © 2003