Package qubx :: Package fast :: Module model
[hide private]
[frames] | no frames]

Module model

source code

Compiled routines for graph theory and linear constraints.

Copyright 2008-2014 Research Foundation State University of New York This file is part of QUB Express.

QUB Express is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QUB Express is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License, named LICENSE.txt, in the QUB Express program directory. If not, see <http://www.gnu.org/licenses/>.

Classes [hide private]
  ModelStruct
  PModel
  Model
  MultiModelStruct
  PMultiModel
  MultiModel
  ConstrainedStruct
  PConstrained
  ConstrainedBase
  Constrained
  StimAmpsStruct
  PStimAmps
  StimAmps
  StimRatesStruct
  PStimRates
  StimRates
Functions [hide private]
 
find_loops(edges)
Returns a list of the fundamental cycles in a bidirectional graph.
source code
 
EliminateFixedParams(K, Ain, Bin)
Returns K, Ain, Bin, kR_indices with all fixed rates (and corresponding constraint rows) removed.
source code
 
Kr_to_K(Kr, K, Kr_indices) source code
 
ReduceConstraints(Ain, Bin) source code
 
SetupLinearConstraints(Ain, Bin, K) source code
 
ef_from_param(cls, obj) source code
 
Eigen_Scipy(n, a_, wr_, wi_, v_, v_inv_) source code
Variables [hide private]
  Eigen_Scipy_Ptr = Eigen_Scipy_Ptr
  __package__ = 'qubx.fast'
Function Details [hide private]

find_loops(edges)

source code 

Returns a list of the fundamental cycles in a bidirectional graph.

Parameters:
  • edges - a list of pairs (From, To) of connected state indices; should have both (From, To) and (To, From).
Returns:
a list of cycles; each cycle is a list of state indices

See David Colquhoun, Kathryn Dowsland, Marco Beato and Andrew Plested. (2004). How to impose microscopic reversibility in complex reaction mechanisms. (with appendix by Kathryn. A. Dowsland and Frank G. Ball) Biophysical Journal, 86, 3510-3518.Available here.