This module contains functions for reading MEC, SCN, SSD, ABF files; choosing and reading a kinetic mechanism from a mec file generated by DCPROGS.
Convert ABF file header into SSD file header.
Read data from Axon abf file . Works only for version < 2.0.
Read Axon abf file header. Works only for version < 2.0. Read only information required for gap-free data reading.
Choose mechanism from a list of mechanisms in file.
Parameters : | meclist : list; each element is another list containing:
max_mecnum : int
|
---|---|
Returns : | mecnum : int
ratenum : int
|
Read list of mechanisms saved in mec file.
Parameters : | mecfile : filename |
---|---|
Returns : | version : int
meclist : list; each element is another list containing
max_mecnum : int
|
Load chosen mec.
Parameters : | mecfile : filename start : int
|
---|---|
Returns : | mec.Mechanism(RateList, StateList, ncyc) : instance of Mechanism class. |
Read idealised data- intervals, amplitudes, flags- rom SCN file.
Data= real*4 tint(1...nint) 4nint bytes integer*2 iampl(1..nint) 2nint bytes integer*1 iprops(1..nint) nint bytes Total storage needed = 7 * nint bytes
integer*1 iprops(i) holds properties of ith duration and amplitude (integer*1 has range -128 to +127 (bit 7 set gives -128; can use bits 0-6) 0 = all OK; 1 = amplitude dubious = bit 0; 2 = amplitude fixed = bit 1; 4 = amplitude of opening constrained (see fixamp) = bit 2; 8 = duration unusable = bit 3; etc and keep sum of values of more than one property is true.
Read SCN file header. SCN files are generated by SCAN program (DCprogs) and contain idealised single channel record.
Read data from Consam ssd or dat file.
Read the header of a Consam file.
Sava data into Consam ssd format file.