ipfx.bin package

Submodules

ipfx.bin.generate_fx_input module

ipfx.bin.generate_fx_input.generate_fx_input(se_input, se_output, cell_dir, plot_figures=False)[source]
ipfx.bin.generate_fx_input.main()[source]

Usage: > python generate_fx_input.py –specimen_id SPECIMEN_ID –cell_dir CELL_DIR > python generate_fx_input.py –input_nwb_file INPUT_NWB_FILE –cell_dir CELL_DIR

ipfx.bin.generate_pipeline_input module

ipfx.bin.generate_pipeline_input.generate_pipeline_input(cell_dir=None, specimen_id=None, input_nwb_file=None, plot_figures=False, qc_fig_dirname='qc_figs')[source]
ipfx.bin.generate_pipeline_input.main()[source]

Usage: > python generate_pipeline_input.py –specimen_id SPECIMEN_ID –cell_dir CELL_DIR > python generate_pipeline_input.py –input_nwb_file INPUT_NWB_FILE –cell_dir CELL_DIR

ipfx.bin.generate_qc_input module

ipfx.bin.generate_qc_input.generate_qc_input(se_input, se_output)[source]
ipfx.bin.generate_qc_input.main()[source]

Usage: > python generate_qc_input.py –specimen_id SPECIMEN_ID –cell_dir CELL_DIR > python generate_qc_input.py –input_nwb_file input_nwb_file –cell_dir CELL_DIR

ipfx.bin.generate_se_input module

ipfx.bin.generate_se_input.generate_se_input(cell_dir, specimen_id=None, input_nwb_file=None)[source]
ipfx.bin.generate_se_input.main()[source]

Usage: > python generate_se_input.py –specimen_id SPECIMEN_ID –cell_dir CELL_DIR > python generate_se_input.py –input_nwb_file input_nwb_file –cell_dir CELL_DIR

ipfx.bin.generate_se_input.parse_args()[source]

ipfx.bin.get_fx_output module

ipfx.bin.get_fx_output.get_fx_output_json(specimen_id)[source]

Find in LIMS the full path to the json output of the feature extraction module If more than one file exists, then chose the latest version

Parameters:
specimen_id
Returns:
file_name: string
ipfx.bin.get_fx_output.main()[source]

Usage: $python get_fx_output.py –input_file IN_FILE –output_file OUT_FILE IN_FILE: name of the input file including a single column with the header ‘specimen_id’ OUT_FILE: name of the output file that includes columns ‘specimen_id’ and ‘fx_output_json’

ipfx.bin.get_fx_output.parse_args()[source]

ipfx.bin.make_stimulus_ontology module

ipfx.bin.make_stimulus_ontology.main()[source]
ipfx.bin.make_stimulus_ontology.make_default_stimulus_ontology()[source]
ipfx.bin.make_stimulus_ontology.make_stimulus_ontology(stims)[source]
ipfx.bin.make_stimulus_ontology.make_stimulus_ontology_from_lims(file_name)[source]

ipfx.bin.mcc_get_settings module

Code for interfacing with the Multi Clamp Commander application from Axon/Molecular Devices

class ipfx.bin.mcc_get_settings.DataGatherer[source]

Bases: object

Collect data from all available MCC amplifiers

Methods

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.DataGatherer, line 20)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.DataGatherer.getData’
getData(self, mcc) Return all MCC settings for all amplifiers as dictionary
getData(self, mcc)[source]

Return all MCC settings for all amplifiers as dictionary

class ipfx.bin.mcc_get_settings.MultiClampControl(dllPath=None)[source]

Bases: object

Class for interacting with the MultiClamp Commander from Axon/Molecular Devices

Usage:

```

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 14); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 14); backlink

Inline interpreted text or phrase reference start-string without end-string.

import mcc

m = mcc.MultiClampControl() UIDs = m.getUIDs() # output all found amplifiers m.selectUniqueID(next(iter(UIDs))) # select the first one (implicitly done by __init__) clampMode = m.GetMode() # return the clamp mode if m._handleError()[0]:

System Message: ERROR/3 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 14)

Unexpected indentation.
# handle error pass

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 16)

Definition list ends without a blank line; unexpected unindent.

```

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 16); backlink

Inline literal start-string without end-string.

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 16); backlink

Inline interpreted text or phrase reference start-string without end-string.

Methods

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 33)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.MultiClampControl.CreateObject’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 33)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.MultiClampControl.DestroyObject’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 33)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.MultiClampControl.FindFirstMultiClamp’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 33)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.MultiClampControl.FindNextMultiClamp’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.MultiClampControl, line 33)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.MultiClampControl.getUIDs’
CreateObject(self) run this first to create self.hMCCmsg
DestroyObject(self) Do this last if you do it
FindFirstMultiClamp(self) Find the first available amplifier and return its parameter
FindNextMultiClamp(self) Find the next available amplifier and return its parameter
getUIDs(self) Return a list of all amplifier UIDs
AutoBridgeBal  
AutoFastComp  
AutoLeakSub  
AutoOutputZero  
AutoPipetteOffset  
AutoSlowComp  
AutoWholeCellComp  
BuildErrorText  
Buzz  
CheckAPIVersion  
ClearMinus  
ClearPlus  
GetBridgeBalEnable  
GetBridgeBalResist  
GetBuzzDuration  
GetFastCompCap  
GetFastCompTau  
GetHolding  
GetHoldingEnable  
GetLeakSubEnable  
GetLeakSubResist  
GetMeterIrmsEnable  
GetMeterResistEnable  
GetMeterValue  
GetMode  
GetModeSwitchEnable  
GetNeutralizationCap  
GetNeutralizationEnable  
GetOscKillerEnable  
GetOutputZeroAmplitude  
GetOutputZeroEnable  
GetPipetteOffset  
GetPrimarySignal  
GetPrimarySignalGain  
GetPrimarySignalHPF  
GetPrimarySignalLPF  
GetPulseAmplitude  
GetPulseDuration  
GetRsCompBandwidth  
GetRsCompCorrection  
GetRsCompEnable  
GetRsCompPrediction  
GetScopeSignalLPF  
GetSecondarySignal  
GetSecondarySignalGain  
GetSecondarySignalLPF  
GetSlowCompCap  
GetSlowCompTau  
GetSlowCompTauX20Enable  
GetSlowCurrentInjEnable  
GetSlowCurrentInjLevel  
GetSlowCurrentInjSettlingTime  
GetTestSignalAmplitude  
GetTestSignalEnable  
GetTestSignalFrequency  
GetWholeCellCompCap  
GetWholeCellCompEnable  
GetWholeCellCompResist  
GetZapDuration  
Pulse  
QuickSelectButton  
Reset  
SelectMultiClamp  
SetBridgeBalEnable  
SetBridgeBalResist  
SetBuzzDuration  
SetFastCompCap  
SetFastCompTau  
SetHolding  
SetHoldingEnable  
SetLeakSubEnable  
SetLeakSubResist  
SetMeterIrmsEnable  
SetMeterResistEnable  
SetMode  
SetModeSwitchEnable  
SetNeutralizationCap  
SetNeutralizationEnable  
SetOscKillerEnable  
SetOutputZeroAmplitude  
SetOutputZeroEnable  
SetPipetteOffset  
SetPrimarySignal  
SetPrimarySignalGain  
SetPrimarySignalHPF  
SetPrimarySignalLPF  
SetPulseAmplitude  
SetPulseDuration  
SetRsCompBandwidth  
SetRsCompCorrection  
SetRsCompEnable  
SetRsCompPrediction  
SetScopeSignalLPF  
SetSecondarySignal  
SetSecondarySignalGain  
SetSecondarySignalLPF  
SetSlowCompCap  
SetSlowCompTau  
SetSlowCompTauX20Enable  
SetSlowCurrentInjEnable  
SetSlowCurrentInjLevel  
SetSlowCurrentInjSettlingTime  
SetTestSignalAmplitude  
SetTestSignalEnable  
SetTestSignalFrequency  
SetTimeOut  
SetWholeCellCompCap  
SetWholeCellCompEnable  
SetWholeCellCompResist  
SetZapDuration  
ToggleAlwaysOnTop  
ToggleResize  
Zap  
cleanup  
getChannel  
getSerial  
selectUniqueID  
AutoBridgeBal(self)[source]
AutoFastComp(self)[source]
AutoLeakSub(self)[source]
AutoOutputZero(self)[source]
AutoPipetteOffset(self)[source]
AutoSlowComp(self)[source]
AutoWholeCellComp(self)[source]
BuildErrorText(self)[source]
Buzz(self)[source]
CheckAPIVersion(self)[source]
ClearMinus(self)[source]
ClearPlus(self)[source]
CreateObject(self)[source]

run this first to create self.hMCCmsg

DestroyObject(self)[source]

Do this last if you do it

FindFirstMultiClamp(self)[source]

Find the first available amplifier and return its parameter

FindNextMultiClamp(self)[source]

Find the next available amplifier and return its parameter

GetBridgeBalEnable(self)[source]
GetBridgeBalResist(self)[source]
GetBuzzDuration(self)[source]
GetFastCompCap(self)[source]
GetFastCompTau(self)[source]
GetHolding(self)[source]
GetHoldingEnable(self)[source]
GetLeakSubEnable(self)[source]
GetLeakSubResist(self)[source]
GetMeterIrmsEnable(self)[source]
GetMeterResistEnable(self)[source]
GetMeterValue(self, u)[source]
GetMode(self)[source]
GetModeSwitchEnable(self)[source]
GetNeutralizationCap(self)[source]
GetNeutralizationEnable(self)[source]
GetOscKillerEnable(self)[source]
GetOutputZeroAmplitude(self)[source]
GetOutputZeroEnable(self)[source]
GetPipetteOffset(self)[source]
GetPrimarySignal(self)[source]
GetPrimarySignalGain(self)[source]
GetPrimarySignalHPF(self)[source]
GetPrimarySignalLPF(self)[source]
GetPulseAmplitude(self)[source]
GetPulseDuration(self)[source]
GetRsCompBandwidth(self)[source]
GetRsCompCorrection(self)[source]
GetRsCompEnable(self)[source]
GetRsCompPrediction(self)[source]
GetScopeSignalLPF(self)[source]
GetSecondarySignal(self)[source]
GetSecondarySignalGain(self)[source]
GetSecondarySignalLPF(self)[source]
GetSlowCompCap(self)[source]
GetSlowCompTau(self)[source]
GetSlowCompTauX20Enable(self)[source]
GetSlowCurrentInjEnable(self)[source]
GetSlowCurrentInjLevel(self)[source]
GetSlowCurrentInjSettlingTime(self)[source]
GetTestSignalAmplitude(self)[source]
GetTestSignalEnable(self)[source]
GetTestSignalFrequency(self)[source]
GetWholeCellCompCap(self)[source]
GetWholeCellCompEnable(self)[source]
GetWholeCellCompResist(self)[source]
GetZapDuration(self)[source]
Pulse(self)[source]
QuickSelectButton(self, u)[source]
Reset(self)[source]
SelectMultiClamp(self, uModel, _pszSerialNum, uCOMPortID, uDeviceID, uChannelID)[source]
SetBridgeBalEnable(self, b)[source]
SetBridgeBalResist(self, d)[source]
SetBuzzDuration(self, d)[source]
SetFastCompCap(self, d)[source]
SetFastCompTau(self, d)[source]
SetHolding(self, d)[source]
SetHoldingEnable(self, b)[source]
SetLeakSubEnable(self, b)[source]
SetLeakSubResist(self, d)[source]
SetMeterIrmsEnable(self, b)[source]
SetMeterResistEnable(self, b)[source]
SetMode(self, u)[source]
SetModeSwitchEnable(self, b)[source]
SetNeutralizationCap(self, d)[source]
SetNeutralizationEnable(self, b)[source]
SetOscKillerEnable(self, b)[source]
SetOutputZeroAmplitude(self, d)[source]
SetOutputZeroEnable(self, b)[source]
SetPipetteOffset(self, d)[source]
SetPrimarySignal(self, u)[source]
SetPrimarySignalGain(self, d)[source]
SetPrimarySignalHPF(self, d)[source]
SetPrimarySignalLPF(self, d)[source]
SetPulseAmplitude(self, d)[source]
SetPulseDuration(self, d)[source]
SetRsCompBandwidth(self, d)[source]
SetRsCompCorrection(self, d)[source]
SetRsCompEnable(self, b)[source]
SetRsCompPrediction(self, d)[source]
SetScopeSignalLPF(self, d)[source]
SetSecondarySignal(self, u)[source]
SetSecondarySignalGain(self, d)[source]
SetSecondarySignalLPF(self, d)[source]
SetSlowCompCap(self, d)[source]
SetSlowCompTau(self, d)[source]
SetSlowCompTauX20Enable(self, b)[source]
SetSlowCurrentInjEnable(self, b)[source]
SetSlowCurrentInjLevel(self, d)[source]
SetSlowCurrentInjSettlingTime(self, d)[source]
SetTestSignalAmplitude(self, d)[source]
SetTestSignalEnable(self, b)[source]
SetTestSignalFrequency(self, d)[source]
SetTimeOut(self, u)[source]
SetWholeCellCompCap(self, d)[source]
SetWholeCellCompEnable(self, b)[source]
SetWholeCellCompResist(self, d)[source]
SetZapDuration(self, d)[source]
ToggleAlwaysOnTop(self)[source]
ToggleResize(self)[source]
Zap(self)[source]
cleanup(self)[source]
getChannel(self)[source]
getSerial(self)[source]
getUIDs(self)[source]

Return a list of all amplifier UIDs

selectUniqueID(self, uniqueID)[source]
class ipfx.bin.mcc_get_settings.SettingsFetcher(settingsFile)[source]

Bases: watchdog.events.RegexMatchingEventHandler

Attributes:
case_sensitive

(Read-only)

ignore_directories

(Read-only)

ignore_regexes

(Read-only)

regexes

(Read-only)

Methods

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.SettingsFetcher, line 32)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.SettingsFetcher.dispatch’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.SettingsFetcher, line 32)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.SettingsFetcher.on_any_event’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.SettingsFetcher, line 32)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.SettingsFetcher.on_closed’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.SettingsFetcher, line 32)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.SettingsFetcher.on_created’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.SettingsFetcher, line 32)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.SettingsFetcher.on_deleted’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.SettingsFetcher, line 32)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.SettingsFetcher.on_modified’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.SettingsFetcher, line 32)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.SettingsFetcher.on_moved’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/mcc_get_settings.py:docstring of ipfx.bin.mcc_get_settings.SettingsFetcher, line 32)

toctree references unknown document ‘ipfx.bin.mcc_get_settings.SettingsFetcher.on_opened’
dispatch(self, event) Dispatches events to the appropriate methods.
on_any_event(self, event) Catch-all event handler.
on_closed(self, event) Called when a file opened for writing is closed.
on_created(self, event) Called when a file or directory is created.
on_deleted(self, event) Called when a file or directory is deleted.
on_modified(self, event) Called when a file or directory is modified.
on_moved(self, event) Called when a file or a directory is moved or renamed.
on_opened(self, event) Called when a file is opened.
on_created(self, event)[source]

Called when a file or directory is created.

Parameters:event (DirCreatedEvent or FileCreatedEvent) – Event representing file/directory creation.
ipfx.bin.mcc_get_settings.c_bool_p

alias of ipfx.bin.mcc_get_settings.LP_c_bool

ipfx.bin.mcc_get_settings.c_double_p

alias of ipfx.bin.mcc_get_settings.LP_c_double

ipfx.bin.mcc_get_settings.c_uint_p

alias of ipfx.bin.mcc_get_settings.LP_c_uint

ipfx.bin.mcc_get_settings.main()[source]
ipfx.bin.mcc_get_settings.parseSettingsFromFile(settingsFile)[source]
ipfx.bin.mcc_get_settings.val(ptr, ptype)[source]
ipfx.bin.mcc_get_settings.writeSettingsToFile(settingsFile, filename)[source]

ipfx.bin.nwb_to_pdf module

class ipfx.bin.nwb_to_pdf.PatchClampSeriesPlotData(pcs)[source]

Bases: object

Data class for storing plotting information for PatchClampSeries
pcs: neurodata patchClampSeries or derived object

Methods

add_annotation  
check_type  
get_annotation  
add_annotation(self, name, data, unit)[source]
check_type(self, type_)[source]
get_annotation(self)[source]
class ipfx.bin.nwb_to_pdf.SingleSweep(id)[source]

Bases: object

Generic Class for storing sweep specific PatchClampSeries Data

Methods

add_acquisition  
add_stimulus  
get_acquisition  
get_stimulus  
num_acquisition  
num_stimulus  
add_acquisition(self, key, pcs)[source]
add_stimulus(self, key, pcs)[source]
get_acquisition(self)[source]
get_stimulus(self)[source]
num_acquisition(self)[source]
num_stimulus(self)[source]
class ipfx.bin.nwb_to_pdf.SweepCollection[source]

Bases: object

Class for grouping sweep related PatchClampSeries

Methods

get  
get(self, id)[source]
ipfx.bin.nwb_to_pdf.check_stimset_reconstruction(nwbfile, outfile)[source]

From a specially crafted NWB file this routine creates a PDF for checking the stimset reconstruction.

The NWB file must have data acquired on two headstages/electrodes where the second just reads back the stimulus set.

ipfx.bin.nwb_to_pdf.create_regular_pdf(nwbfile, outfile)[source]

convert a NeurodataWithoutBorders file to a PortableDocumentFile

ipfx.bin.nwb_to_pdf.gather_sweeps(nwbfile)[source]

sort PatchClampSeries according to cycle_id

ipfx.bin.nwb_to_pdf.main()[source]
ipfx.bin.nwb_to_pdf.physical(number, unit)[source]
ipfx.bin.nwb_to_pdf.plot_patchClampSeries(axis, pcs_data_plot, length)[source]
plot a PatchClampSeries against the axis
pcs_data_plot: class PatchClampSeriesPlotData axis: plt.axis length: number of points to plot
ipfx.bin.nwb_to_pdf.plot_sweepdata(sweepdata, axes, length, addXTicks=False)[source]
plot the given sweep data (stimulus or acquisition) on the given axes
sweepdata: dict(class PatchClampSeriesPlotData) (either acquisition or
stimulus)

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/nwb_to_pdf.py:docstring of ipfx.bin.nwb_to_pdf.plot_sweepdata, line 5)

Definition list ends without a blank line; unexpected unindent.

axes: np.ndarray(plt.axis) length: number of points to plot addXTicks: Add ticks and a label to the X axis at the bottom

ipfx.bin.nwb_to_pdf.to_si(d, sep=' ')[source]

taken from https://stackoverflow.com/a/15734251/7809404

Convert number to string with SI prefix

Example:
>>> to_si(2500.0)
'2.5 k'
>>> to_si(2.3E6)
'2.3 M'
>>> to_si(2.3E-6)
'2.3 µ'
>>> to_si(-2500.0)
'-2.5 k'
>>> to_si(0)
'0'

ipfx.bin.pipeline_from_specimen_id module

ipfx.bin.pipeline_from_specimen_id.main()[source]

Runs pipeline from the specimen_id Usage: python pipeline_from_nwb_file.py SPECIMEN_ID

User must specify the OUTPUT_DIR

ipfx.bin.plot_ephys_nwb module

ipfx.bin.plot_ephys_nwb.axes_ratios(sweep_table)[source]
ipfx.bin.plot_ephys_nwb.customize_axis(ax)[source]
ipfx.bin.plot_ephys_nwb.get_vertical_offset(data)[source]
ipfx.bin.plot_ephys_nwb.main()[source]

Plot sweeps of a given ephys nwb file # Usage: $ python plot_ephys_nwb_file.py NWB_FILE_NAME

ipfx.bin.plot_ephys_nwb.plot_data_set(data_set, clamp_mode:Union[str, NoneType]=None, stimuli:Union[Collection[str], NoneType]=None, stimuli_exclude:Union[Collection[str], NoneType]=None, show_amps:Union[bool, NoneType]=True, qc_sweeps:Union[bool, NoneType]=True, figsize=(15, 7))[source]
ipfx.bin.plot_ephys_nwb.plot_waveforms(ax, ys, rs, annotations=None)[source]

ipfx.bin.run_chirp_fv_extraction module

class ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]

Bases: argschema.schemas.ArgSchema

Attributes:
dict_class
set_class

Methods

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.Meta’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.OPTIONS_CLASS’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.dump’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.dumps’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.get_attribute’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.handle_error’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.load’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.loads’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.make_object’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.on_bind_field’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_chirp_fv_extraction.py:docstring of ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_chirp_fv_extraction.CollectChirpFeatureVectorParameters.validate’
Meta Options object for a Schema.
OPTIONS_CLASS alias of marshmallow.schema.SchemaOpts
dump(self, obj[, many]) Serialize an object to native Python data types according to this Schema’s fields.
dumps(self, obj[, many]) Same as dump(), except return a JSON-encoded string.
get_attribute(self, obj, attr, default) Defines how to pull values from an object to serialize.
handle_error(self, error, data) Custom error handler function for the schema.
load(self, data[, many, partial, unknown]) Deserialize a data structure to an object defined by this Schema’s fields.
loads(self, json_data[, many, partial, unknown]) Same as load(), except it takes a JSON string as input.
make_object(self, in_data) marshmallow.pre_load decorated function for applying defaults on deserialation
on_bind_field(self, field_name, field_obj) Hook to modify a field when it is bound to the Schema.
validate(self, data[, many, partial]) Validate data against the schema, returning a dictionary of validation errors.
opts = <marshmallow.schema.SchemaOpts object>
ipfx.bin.run_chirp_fv_extraction.data_for_specimen_id(specimen_id, data_source, ontology)[source]
ipfx.bin.run_chirp_fv_extraction.edit_ontology_data(original_ontology_data, codes_to_rename, new_name_tag, new_core_tag)[source]
ipfx.bin.run_chirp_fv_extraction.main(output_dir, output_code, input_file, include_failed_cells, run_parallel, data_source, chirp_stimulus_codes, **kwargs)[source]
ipfx.bin.run_chirp_fv_extraction.run_chirp_feature_vector_extraction(output_dir, output_code, include_failed_cells, specimen_ids, chirp_stimulus_codes, data_source='lims', run_parallel=True)[source]

ipfx.bin.run_feature_collection module

class ipfx.bin.run_feature_collection.CollectFeatureParameters(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]

Bases: argschema.schemas.ArgSchema

Attributes:
dict_class
set_class

Methods

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.Meta’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.OPTIONS_CLASS’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.dump’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.dumps’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.get_attribute’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.handle_error’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.load’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.loads’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.make_object’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.on_bind_field’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_collection.py:docstring of ipfx.bin.run_feature_collection.CollectFeatureParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_collection.CollectFeatureParameters.validate’
Meta Options object for a Schema.
OPTIONS_CLASS alias of marshmallow.schema.SchemaOpts
dump(self, obj[, many]) Serialize an object to native Python data types according to this Schema’s fields.
dumps(self, obj[, many]) Same as dump(), except return a JSON-encoded string.
get_attribute(self, obj, attr, default) Defines how to pull values from an object to serialize.
handle_error(self, error, data) Custom error handler function for the schema.
load(self, data[, many, partial, unknown]) Deserialize a data structure to an object defined by this Schema’s fields.
loads(self, json_data[, many, partial, unknown]) Same as load(), except it takes a JSON string as input.
make_object(self, in_data) marshmallow.pre_load decorated function for applying defaults on deserialation
on_bind_field(self, field_name, field_obj) Hook to modify a field when it is bound to the Schema.
validate(self, data[, many, partial]) Validate data against the schema, returning a dictionary of validation errors.
opts = <marshmallow.schema.SchemaOpts object>
ipfx.bin.run_feature_collection.data_for_specimen_id(specimen_id, passed_only, data_source, ontology, file_list=None)[source]
ipfx.bin.run_feature_collection.extract_features(data_set, ramp_sweep_numbers, ssq_sweep_numbers, lsq_sweep_numbers, amp_interval=20, max_above_rheo=100)[source]
ipfx.bin.run_feature_collection.fi_curve_fit(amps, rates)[source]
ipfx.bin.run_feature_collection.first_spike_lsq(spike_data, feature_list=['threshold_v', 'peak_v', 'upstroke', 'downstroke', 'upstroke_downstroke_ratio', 'width', 'fast_trough_v'])[source]
ipfx.bin.run_feature_collection.first_spike_ramp(ramp_analyzer, feature_list=['threshold_v', 'peak_v', 'upstroke', 'downstroke', 'upstroke_downstroke_ratio', 'width', 'fast_trough_v'])[source]
ipfx.bin.run_feature_collection.first_spike_ssq(ssq_analyzer, feature_list=['threshold_v', 'peak_v', 'upstroke', 'downstroke', 'upstroke_downstroke_ratio', 'width', 'fast_trough_v'])[source]
ipfx.bin.run_feature_collection.lin_sqrt_fit(x, y)[source]
ipfx.bin.run_feature_collection.main()[source]
ipfx.bin.run_feature_collection.mean_spike_lsq(spike_data, feature_list=['threshold_v', 'peak_v', 'upstroke', 'downstroke', 'upstroke_downstroke_ratio', 'width', 'fast_trough_v'])[source]
ipfx.bin.run_feature_collection.run_feature_collection(ids=None, project='T301', include_failed_sweeps=True, include_failed_cells=False, output_file='', run_parallel=True, data_source='lims', file_list=None, **kwargs)[source]
ipfx.bin.run_feature_collection.sqrt_curve(x, A, Ic)[source]

ipfx.bin.run_feature_extraction module

ipfx.bin.run_feature_extraction.collect_spike_times(sweep_features)[source]
ipfx.bin.run_feature_extraction.main()[source]

Usage: python run_feature_extraction.py –input_json INPUT_JSON –output_json OUTPUT_JSON

ipfx.bin.run_feature_extraction.run_feature_extraction(input_nwb_file, stimulus_ontology_file, output_nwb_file, qc_fig_dir, sweep_info, cell_info, write_spikes=True)[source]

ipfx.bin.run_feature_vector_extraction module

class ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters(only=None, exclude=(), many=False, context=None, load_only=(), dump_only=(), partial=False, unknown=None)[source]

Bases: argschema.schemas.ArgSchema

Attributes:
dict_class
set_class

Methods

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.Meta’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.OPTIONS_CLASS’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.dump’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.dumps’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.get_attribute’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.handle_error’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.load’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.loads’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.make_object’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.on_bind_field’

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters, line 26)

toctree references unknown document ‘ipfx.bin.run_feature_vector_extraction.CollectFeatureVectorParameters.validate’
Meta Options object for a Schema.
OPTIONS_CLASS alias of marshmallow.schema.SchemaOpts
dump(self, obj[, many]) Serialize an object to native Python data types according to this Schema’s fields.
dumps(self, obj[, many]) Same as dump(), except return a JSON-encoded string.
get_attribute(self, obj, attr, default) Defines how to pull values from an object to serialize.
handle_error(self, error, data) Custom error handler function for the schema.
load(self, data[, many, partial, unknown]) Deserialize a data structure to an object defined by this Schema’s fields.
loads(self, json_data[, many, partial, unknown]) Same as load(), except it takes a JSON string as input.
make_object(self, in_data) marshmallow.pre_load decorated function for applying defaults on deserialation
on_bind_field(self, field_name, field_obj) Hook to modify a field when it is bound to the Schema.
validate(self, data[, many, partial]) Validate data against the schema, returning a dictionary of validation errors.
opts = <marshmallow.schema.SchemaOpts object>
ipfx.bin.run_feature_vector_extraction.data_for_specimen_id(specimen_id, sweep_qc_option, data_source, ontology, ap_window_length=0.005, target_sampling_rate=50000, file_list=None)[source]

Extract feature vector from given cell identified by the specimen_id Parameters ———- specimen_id : int

System Message: ERROR/3 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.data_for_specimen_id, line 6)

Unexpected indentation.
cell identified

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.data_for_specimen_id, line 7)

Block quote ends without a blank line; unexpected unindent.
sweep_qc_option : str
see CollectFeatureVectorParameters input schema for details
data_source: str
see CollectFeatureVectorParameters input schema for details
ontology : stimulus.StimulusOntology
mapping of stimuli names to stimulus codes
ap_window_length : float
see CollectFeatureVectorParameters input schema for details
target_sampling_rate : float
sampling rate
file_list : list of str
nwbfile names

System Message: WARNING/2 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.data_for_specimen_id, line 19)

Definition list ends without a blank line; unexpected unindent.

System Message: SEVERE/4 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_feature_vector_extraction.py:docstring of ipfx.bin.run_feature_vector_extraction.data_for_specimen_id, line 20)

Unexpected section title.

Returns
-------
dict :
features for a given cell specimen_id
ipfx.bin.run_feature_vector_extraction.main()[source]
ipfx.bin.run_feature_vector_extraction.run_feature_vector_extraction(output_dir, data_source, output_code, project, output_file_type, sweep_qc_option, include_failed_cells, run_parallel, ap_window_length, ids=None, file_list=None, **kwargs)[source]

Extract feature vector from a list of cells and save result to the output file(s)

Parameters:
output_dir : str

see CollectFeatureVectorParameters input schema for details

data_source : str

see CollectFeatureVectorParameters input schema for details

output_code: str

see CollectFeatureVectorParameters input schema for details

project : str

see CollectFeatureVectorParameters input schema for details

output_file_type : str

see CollectFeatureVectorParameters input schema for details

sweep_qc_option: str

see CollectFeatureVectorParameters input schema for details

include_failed_cells: bool

see CollectFeatureVectorParameters input schema for details

run_parallel: bool

see CollectFeatureVectorParameters input schema for details

ap_window_length: float

see CollectFeatureVectorParameters input schema for details

ids: int

ids associated to each cell.

file_list: list of str

nwbfile names

kwargs

ipfx.bin.run_pipeline module

ipfx.bin.run_pipeline.main()[source]

Usage: python run_pipeline.py –input_json INPUT_JSON –output_json OUTPUT_JSON

ipfx.bin.run_pipeline.run_pipeline(input_nwb_file, output_nwb_file, stimulus_ontology_file, qc_fig_dir, qc_criteria, manual_sweep_states, write_spikes=True)[source]

ipfx.bin.run_pipeline_from_nwb_file module

ipfx.bin.run_pipeline_from_nwb_file.main()[source]

Convenience script for running ephys pipeline from a given nwb file It generates the pipeline input and then calls the run_pipeline executable

Usage: python run_pipeline_from_nwb_file.py <input_nwb_file> <output_dir>

ipfx.bin.run_qc module

ipfx.bin.run_qc.main()[source]

Usage: python run_qc.py –input_json INPUT_JSON –output_json OUTPUT_JSON

ipfx.bin.run_qc.qc_summary(sweep_features, sweep_states, cell_features, cell_state)[source]

Output QC summary

Parameters:
sweep_features: list of dicts
sweep_states: list of dict
cell_features: list of dicts
cell_state: dict
ipfx.bin.run_qc.run_qc(stimulus_ontology_file, cell_features, sweep_features, qc_criteria)[source]
Parameters:
stimulus_ontology_file : str

ontology file name

cell_features: dict

cell features

sweep_features : list of dicts

sweep features

qc_criteria: dict

qc criteria

Returns:
dict

containing state of the cell and sweeps

ipfx.bin.run_sweep_extraction module

ipfx.bin.run_sweep_extraction.main()[source]

Usage: python run_sweep_extraction.py

System Message: ERROR/3 (/home/docs/checkouts/readthedocs.org/user_builds/ipfx/checkouts/latest/ipfx/bin/run_sweep_extraction.py:docstring of ipfx.bin.run_sweep_extraction.main, line 4)

Unexpected indentation.
–input_json INPUT_JSON –output_json OUTPUT_JSON
ipfx.bin.run_sweep_extraction.run_sweep_extraction(input_nwb_file, stimulus_ontology_file, input_manual_values=None)[source]
Parameters:
input_nwb_file
stimulus_ontology_file
input_manual_values

ipfx.bin.run_synphys_feature_vector_extraction module

ipfx.bin.run_x_to_nwb_conversion module

ipfx.bin.run_x_to_nwb_conversion.convert(inFileOrFolder, overwrite=False, fileType=None, outputMetadata=False, outputFeedbackChannel=False, multipleGroupsPerFile=False, compression=True)[source]

Convert the given file to a NeuroDataWithoutBorders file using pynwb

Supported fileformats:
  • ABF v2 files created by Clampex
  • DAT files created by Patchmaster v2x90
Parameters:
  • inFileOrFolder – path to a file or folder
  • overwrite – overwrite output file, defaults to False
  • fileType – file type to be converted, must be passed iff inFileOrFolder refers to a folder
  • outputMetadata – output metadata of the file, helpful for debugging
  • outputFeedbackChannel – Output ADC data which stems from stimulus feedback channels (ignored for DAT files)
  • multipleGroupsPerFile – Write all Groups in the DAT file into one NWB file. By default we create one NWB per Group (ignored for ABF files).
  • compression – Toggle compression for HDF5 datasets
Returns:

path of the created NWB file

ipfx.bin.run_x_to_nwb_conversion.main()[source]

ipfx.bin.validate_experiment module

ipfx.bin.validate_experiment.get_pipeline_output_json(storage_dir, err_id)[source]

Return the name of the output file giving preference to the newer version Parameters ———- storage_dir: str of storage directory err_id: str err_id Returns ——- pipeline_output_json: str filename

ipfx.bin.validate_experiment.main()[source]
ipfx.bin.validate_experiment.nullisclose(a, b)[source]
ipfx.bin.validate_experiment.validate_cell_features(err, ephys_features, cell_record)[source]
ipfx.bin.validate_experiment.validate_feature_set(features, d1, d2)[source]
ipfx.bin.validate_experiment.validate_fx(test_output_json='test/fx_output.json')[source]
ipfx.bin.validate_experiment.validate_pipeline(input_json, output_json)[source]
ipfx.bin.validate_experiment.validate_run_completion(pipeline_input_json, pipeline_output_json)[source]

Check if the pipeline output was generated as way of confirming that the run completed Parameters ———- pipeline_input_json pipeline_output_json Returns ——-

ipfx.bin.validate_experiment.validate_se(test_output_json='test/sweep_extraction_output.json')[source]

Module contents