Patch-clamp Relacs Plugins
0.9.8
|
#include <membraneresistance.h>
Public Member Functions | |
MembraneResistance (void) | |
virtual void | preConfig (void) |
virtual int | main (void) |
void | analyzeOn (double duration, double sswidth, bool nossfit) |
void | analyzeOff (double duration, double sswidth, bool nossfit) |
void | plot (void) |
void | save (void) |
void | saveData (void) |
void | saveTrace (const Options &header) |
void | saveExpFit (const Options &header) |
Public Member Functions inherited from ConfigDialog | |
ConfigDialog (const string &configident="", int configgroup=0, const string &name="", const string &author="", const string &version="", const string &date=__DATE__) | |
virtual | ~ConfigDialog (void) |
string | name (void) const |
virtual void | setName (const string &name) |
string | author (void) const |
virtual void | setAuthor (const string &author) |
string | version (void) const |
virtual void | setVersion (const string &version) |
string | date (void) const |
virtual void | setDate (const string &date) |
virtual OptWidget * | dialogOptions (OptDialog *od, string *tabhotkeys=0) |
virtual void | dialogButtons (OptDialog *od) |
virtual void | dialogEmptyMessage (OptDialog *od) |
int | dialogSelectMask (void) const |
void | setDialogSelectMask (int mask) |
void | addDialogSelectMask (int mask) |
int | dialogReadOnlyMask (void) const |
void | setDialogReadOnlyMask (int mask) |
void | addDialogReadOnlyMask (int mask) |
int | dialogStyle (void) const |
void | setDialogStyle (int style) |
void | addDialogStyle (int style) |
string | dialogCaption (void) const |
void | setDialogCaption (const string &caption) |
bool | dialogHeader (void) const |
void | setDialogHeader (bool d) |
string | headerBackgroundColor (void) const |
void | setHeaderBackgroundColor (const string &color) |
string | headerForegroundColor (void) const |
void | setHeaderForegroundColor (const string &color) |
string | headerImageFile (void) const |
void | setHeaderImageFile (const string &file) |
virtual void | dialogHeaderWidget (OptDialog *od) |
bool | dialogHelp (void) const |
void | setDialogHelp (bool d) |
string | helpCaption (void) const |
void | setHelpCaption (const string &caption) |
string | helpPath (int inx=0) const |
int | helpPathes (void) const |
void | clearHelpPathes (void) |
void | setHelpPath (const string &path) |
void | addHelpPath (const string &path) |
virtual string | helpFileName (void) const |
bool | dialogOpen (void) const |
bool | helpOpen (void) const |
QWidget * | mainWidget (void) |
virtual void | setMainWidget (QWidget *widget) |
void | lock () const |
void | unlock () const |
bool | tryLock (int timeout=1) |
QMutex * | mutex (void) |
Public Member Functions inherited from ConfigClass | |
ConfigClass (const string &ident, int group=0, int mode=0xffff, int selectmask=0) | |
ConfigClass (const ConfigClass &C) | |
virtual | ~ConfigClass (void) |
const string & | configIdent (void) const |
void | setConfigIdent (const string &ident) |
int | configGroup (void) const |
void | setConfigGroup (int group) |
int | configMode (void) const |
void | setConfigMode (int mode) |
void | addConfigMode (int mode) |
void | delConfigMode (int mode) |
int | configSelectMask (void) const |
void | setConfigSelectMask (int mask) |
void | addConfig (void) |
void | readConfig (void) |
virtual void | readConfig (StrQueue &sq) |
virtual void | saveConfig (ofstream &str) |
virtual int | configSize (void) const |
virtual void | config (void) |
Protected Attributes | |
Plot | P |
string | VUnit |
string | IUnit |
double | VFac |
double | IFac |
double | IInFac |
SampleDataD | MeanVoltage |
SampleDataD | SquareVoltage |
SampleDataD | StdevVoltage |
deque< int > | TraceIndices |
deque< SampleDataD > | MeanTraces |
deque< SampleDataD > | SquareTraces |
double | DCCurrent |
double | Amplitude |
double | Duration |
double | VRest |
double | VRestsd |
double | VSS |
double | VSSsd |
double | VPeak |
double | VPeaksd |
int | VPeakInx |
double | VPeakTime |
double | RMss |
double | RMOn |
double | CMOn |
double | TauMOn |
double | RMOff |
double | CMOff |
double | TauMOff |
SampleDataF | ExpOn |
SampleDataF | ExpOff |
int | Count |
vector< string > | OutParams |
Protected Attributes inherited from ConfigDialog | |
Options | DialogOptions |
Additional Inherited Members | |
Public Types inherited from ConfigClass | |
enum | Action |
Public Slots inherited from ConfigDialog | |
virtual void | dialog (void) |
virtual void | help (void) |
virtual void | notifyDialog (const Options &opt) |
Signals inherited from ConfigDialog | |
void | dialogAccepted (void) |
void | dialogAction (int r) |
void | dialogClosed (int r) |
Static Public Member Functions inherited from ConfigClass | |
static void | setConfigureClasses (ConfigureClasses *cfg) |
Protected Slots inherited from ConfigDialog | |
void | notificationFromDialog (const Parameter &p) |
virtual void | dClosed (int r) |
virtual void | hClosed (int r) |
Protected Member Functions inherited from ConfigDialog | |
void | setDialogOpen (bool open=true) |
void | setHelpOpen (bool open=true) |
[RePro] Measures membrane resistance, capacitance, and time constant with current pulses
amplitude=-0.1nA
: Amplitude of output signal (number
)duration=500ms
: Duration of output (number
)pause=1000ms
: Duration of pause bewteen outputs (number
)repeats=100
: Repetitions of stimulus (integer
)skipspikes=true:
Skip trials with detected spikes (boolean
)sswidth=100ms
: Window length for steady-state analysis (number
)nossfit=false:
Fix steady-state potential for fit (boolean
)plotstdev=true:
Plot standard deviation of membrane potential (boolean
)setdata=rest
only: Set results to the session variables (string
)checkoutput=Current-1
: Outputs that need to be at their default value (string
) MembraneResistance | ( | void | ) |
References Plot::lock(), MembraneResistance::P, Plot::setXLabel(), and Plot::unlock().
|
virtual |
Reimplemented from ConfigClass.
References MembraneResistance::IFac, MembraneResistance::IInFac, MembraneResistance::IUnit, MembraneResistance::VFac, and MembraneResistance::VUnit.
|
virtual |
Implements RePro.
References MembraneResistance::Amplitude, MembraneResistance::analyzeOff(), MembraneResistance::analyzeOn(), Plot::clear(), MembraneResistance::CMOff, MembraneResistance::CMOn, OutData::constWave(), MembraneResistance::Count, MembraneResistance::DCCurrent, Plot::draw(), MembraneResistance::Duration, DaqError::errorText(), MembraneResistance::ExpOff, MembraneResistance::ExpOn, DaqError::failed(), MembraneResistance::IUnit, Plot::lock(), MembraneResistance::MeanTraces, MembraneResistance::MeanVoltage, MembraneResistance::OutParams, MembraneResistance::P, MembraneResistance::plot(), OutData::pulseWave(), SampleData< T >::rangeBack(), SampleData< T >::rangeFront(), MembraneResistance::RMOff, MembraneResistance::RMOn, MembraneResistance::RMss, MembraneResistance::save(), OutData::setIdent(), OutData::setTrace(), Plot::setXRange(), Plot::setYLabel(), MembraneResistance::SquareTraces, MembraneResistance::SquareVoltage, MembraneResistance::StdevVoltage, MembraneResistance::TauMOff, MembraneResistance::TauMOn, MembraneResistance::TraceIndices, Plot::unlock(), MembraneResistance::VPeak, MembraneResistance::VPeakInx, MembraneResistance::VPeaksd, MembraneResistance::VPeakTime, MembraneResistance::VRest, MembraneResistance::VRestsd, MembraneResistance::VSS, MembraneResistance::VSSsd, and MembraneResistance::VUnit.
void analyzeOn | ( | double | duration, |
double | sswidth, | ||
bool | nossfit | ||
) |
References MembraneResistance::Amplitude, LinearRange::begin(), SampleData< T >::begin(), MembraneResistance::CMOn, MembraneResistance::Count, expFunc(), expFuncDerivs(), MembraneResistance::ExpOn, MembraneResistance::IFac, MembraneResistance::IInFac, SampleData< T >::index(), marquardtFit(), SampleData< T >::maxIndex(), SampleData< T >::mean(), MembraneResistance::MeanTraces, MembraneResistance::MeanVoltage, SampleData< T >::minIndex(), SampleData< T >::pos(), SampleData< T >::range(), MembraneResistance::RMOn, MembraneResistance::RMss, InData::signalIndex(), SampleData< T >::size(), InData::size(), sqrt(), MembraneResistance::SquareTraces, MembraneResistance::SquareVoltage, SampleData< T >::stdev(), MembraneResistance::StdevVoltage, MembraneResistance::TauMOn, MembraneResistance::TraceIndices, MembraneResistance::VFac, MembraneResistance::VPeak, MembraneResistance::VPeakInx, MembraneResistance::VPeaksd, MembraneResistance::VPeakTime, MembraneResistance::VRest, MembraneResistance::VRestsd, MembraneResistance::VSS, and MembraneResistance::VSSsd.
Referenced by MembraneResistance::main().
void analyzeOff | ( | double | duration, |
double | sswidth, | ||
bool | nossfit | ||
) |
References MembraneResistance::Amplitude, LinearRange::begin(), SampleData< T >::begin(), MembraneResistance::CMOff, expFunc(), expFuncDerivs(), MembraneResistance::ExpOff, MembraneResistance::IFac, SampleData< T >::index(), SampleData< T >::interval(), marquardtFit(), MembraneResistance::MeanVoltage, SampleData< T >::pos(), SampleData< T >::range(), MembraneResistance::RMOff, SampleData< T >::size(), MembraneResistance::StdevVoltage, MembraneResistance::TauMOff, MembraneResistance::VFac, MembraneResistance::VPeakInx, MembraneResistance::VRest, and MembraneResistance::VSS.
Referenced by MembraneResistance::main().
void plot | ( | void | ) |
References Plot::clear(), MembraneResistance::CMOn, Plot::draw(), MembraneResistance::Duration, MembraneResistance::ExpOff, MembraneResistance::ExpOn, Plot::lock(), MembraneResistance::MeanVoltage, minMax(), MembraneResistance::P, Plot::plot(), Plot::plotVLine(), MembraneResistance::RMOn, Plot::setTitle(), MembraneResistance::StdevVoltage, MembraneResistance::TauMOn, and Plot::unlock().
Referenced by MembraneResistance::main().
void save | ( | void | ) |
References MembraneResistance::CMOff, MembraneResistance::CMOn, MembraneResistance::Count, MembraneResistance::OutParams, MembraneResistance::RMOff, MembraneResistance::RMOn, MembraneResistance::RMss, MembraneResistance::saveData(), MembraneResistance::saveExpFit(), MembraneResistance::saveTrace(), MembraneResistance::TauMOff, MembraneResistance::TauMOn, MembraneResistance::VPeak, MembraneResistance::VPeakTime, MembraneResistance::VRest, MembraneResistance::VRestsd, MembraneResistance::VSS, and MembraneResistance::VUnit.
Referenced by MembraneResistance::main().
void saveData | ( | void | ) |
References TableKey::addNumber(), MembraneResistance::Amplitude, MembraneResistance::CMOff, MembraneResistance::CMOn, MembraneResistance::Count, MembraneResistance::DCCurrent, MembraneResistance::Duration, MembraneResistance::IUnit, TableKey::newSection(), MembraneResistance::RMOff, MembraneResistance::RMOn, MembraneResistance::RMss, TableKey::saveData(), TableKey::saveKey(), sqrt(), MembraneResistance::TauMOff, MembraneResistance::TauMOn, MembraneResistance::VPeak, MembraneResistance::VPeaksd, MembraneResistance::VPeakTime, MembraneResistance::VRest, MembraneResistance::VRestsd, MembraneResistance::VSS, MembraneResistance::VSSsd, and MembraneResistance::VUnit.
Referenced by MembraneResistance::save().
void saveTrace | ( | const Options & | header | ) |
References TableKey::addNumber(), MembraneResistance::IUnit, MembraneResistance::MeanTraces, MembraneResistance::MeanVoltage, SampleData< T >::pos(), TableKey::save(), TableKey::saveKey(), SampleData< T >::size(), sqrt(), MembraneResistance::SquareTraces, MembraneResistance::StdevVoltage, MembraneResistance::TraceIndices, and MembraneResistance::VUnit.
Referenced by MembraneResistance::save().
void saveExpFit | ( | const Options & | header | ) |
|
protected |
Referenced by MembraneResistance::main(), MembraneResistance::MembraneResistance(), and MembraneResistance::plot().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by MembraneResistance::analyzeOn(), and MembraneResistance::preConfig().
|
protected |
|
protected |
Referenced by MembraneResistance::analyzeOn(), and MembraneResistance::main().
|
protected |
|
protected |
Referenced by MembraneResistance::analyzeOn(), MembraneResistance::main(), and MembraneResistance::saveTrace().
|
protected |
Referenced by MembraneResistance::analyzeOn(), MembraneResistance::main(), and MembraneResistance::saveTrace().
|
protected |
Referenced by MembraneResistance::analyzeOn(), MembraneResistance::main(), and MembraneResistance::saveTrace().
|
protected |
Referenced by MembraneResistance::main(), and MembraneResistance::saveData().
|
protected |
|
protected |
Referenced by MembraneResistance::main(), MembraneResistance::plot(), and MembraneResistance::saveData().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by MembraneResistance::analyzeOn(), MembraneResistance::main(), and MembraneResistance::saveData().
|
protected |
|
protected |
Referenced by MembraneResistance::analyzeOn(), MembraneResistance::main(), and MembraneResistance::saveData().
|
protected |
Referenced by MembraneResistance::analyzeOff(), MembraneResistance::analyzeOn(), and MembraneResistance::main().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by MembraneResistance::main(), and MembraneResistance::save().