PSICS - the Parallel Stochastic Ion Channel Simulator
previous ←   → next
Under development
Please let us know of errors, unclear text or if you have suggestions form improvements:

Visualizaiton and Output

The core calculation produces output files consisting of tabular data where the first column is the time and subsequent columns are the values of whtever recorders are configured in the model. For a simple model there is just one output data set. For parameter sweeps (RunSet) there is one for each paramter value. Each data set is stored in two formats: a compact binary form with the .dat extension, and a space delimited text form with the .txt extension.

After the core calculation has finished, the results are summarized on an HTML page. The ViewConfig object exists to add plots to that page by defining some default views of the data. The normal usage is to embed a ViewConfig block within the main model file containing one or more plot definition. Currently the available plots are: LineGraph, MeanVariance and PowerSpectrum as described below. All three plot definitions have the same structure. The LineGraph just produces plots of the columns of the specified output file against time. The other plot types perform some processing on the data first and plot the derived data on appropriate axes. The MeanVariance plot is a special case for performing mean-variance analysis and is only useful if the data it is given are currents from a single compartment with a single type of stochastic ion channel.

The contents of a LineGraph block are optional axis definitions, one or more Line or LineSet definitions, and one or more View definitions. The Line and LineSet blocks work the same way to specify the file that the data comes from, and optionally the line width, color etc. The View blocks each define a single plot of the data, specifying the axis ranges for the view window.

The data that is plotted does not have to come from the results of the PSICS calculation. Other data filed can be included in the folder and plotted the same way, as long as they conform to plain ascii table structure. For the case where different units were used for external files, the data can be rescaled by setting the rescale parameterin a LineSet definition.

One last convenience element in a LineGraph definition is the DataComparison block. This also referes to a reference file, but instead of generating a plot, the mean mean and variance of the difference between the plotted data and the comparison data will be computed and added to the html output file.

ViewConfig

Default visualization definitions

within: PSICSRun

Postprocessing and visualization to be run on output data

Attributes

NameTypeDefinitionUnitsRangeRequired
morphologyFlagSet to false to suppress creating morphology plots"true" or "yes", "false" or "no"
morphologyDataFlagSet to true to export the morphology data so it can be plotted independently"true" or "yes", "false" or "no"

Elements

Element typeRole
LineGraph, PowerSpectrum, MeanVariancePlot families. Each plot family may contain multiple views with different axis ranges
RasterRasters

LineGraph

A plot of recorder values against time

within: ViewConfig

This is the standard plot type for PSICS output. It should contain specifications of one or more data sources, one or more views and optional axis definitions.

Attributes

NameTypeDefinitionUnitsRangeRequired
widthWhole numberdefault width for plots(100, 800)
heightWhole numberdefault height for plots(100, 600)

Elements

Element typeRole
LineSet, LineData sources
ViewViews of the data
XAxis
(max 1 instance)
default x axis range and label
YAxis
(max 1 instance)
default y axis range and label

XAxis

X axis label and default range

within: LineGraph

Attributes

NameTypeDefinitionUnitsRangeRequired
minFloating point valuelower limitnone()
maxFloating point valueupper limitnone()
labelplain textaxis label

Elements - No child elements are allowed

YAxis

Y axis label and default range

within: LineGraph

Attributes

NameTypeDefinitionUnitsRangeRequired
minFloating point valuelower limitnone()
maxFloating point valueupper limitnone()
labelplain textaxis label

Elements - No child elements are allowed

Line

within: LineGraph

A single line specified by two columns from a file

Attributes

NameTypeDefinitionUnitsRangeRequired
filetext - the path to the file or folderThe name of the file containing the datayes
widthFloating point valuewidth for plotting linesnone(0.5, 10)
showWhole numberIf set, shows just the specified column from the file
maxshowWhole numberlimits the number of lines plotted from the file, defaulting to 20 if not specified(1, 100)
colorplain textColor to plot the data inEither one of the recognized color names (red, green, blue, magenta, cyan etc) or a hex color such as #ff0000 (which would give red)
rescaleplain textOptional rescaling to make the axes of the data match other items in the plotThis is primarily for reference data from external sources. If the units used in the reference data are differnt from those generated by psics, it can be rescaled by setting this to a two element vector. For example, the value '[1, 1000]]' will cause the data from the first column to be used as is, but the second column will be multiplied by 1000 before plotting. This would be needed, for example, if the reference data was in Volts and was to be compared with PSICS output in milliVolts.
labelplain textlabel to go in keyThe label to use in the key. If it is not set, the line will be labelled with the file name
functionplain textPlot a function of the data rather than the points themselves.Currently this can only take the single value 'mean' to have the mean of all the columns plotted.

Elements

Element typeRole
DataComparisonoptional comparisons with reference data
Statsoptional comparisons with reference data

LineSet

the data that goes into a plot

within: LineGraph

A set of lines defining data to be plotted. The default representation is to plot columns 1 throuhg N from the specified file against the first column, where N is either the last column in the file, or the value of the maxshow attribute, if set

Attributes

NameTypeDefinitionUnitsRangeRequired
filetext - the path to the file or folderThe name of the file containing the datayes
widthFloating point valuewidth for plotting linesnone(0.5, 10)
showWhole numberIf set, shows just the specified column from the file
maxshowWhole numberlimits the number of lines plotted from the file, defaulting to 20 if not specified(1, 100)
colorplain textColor to plot the data inEither one of the recognized color names (red, green, blue, magenta, cyan etc) or a hex color such as #ff0000 (which would give red)
rescaleplain textOptional rescaling to make the axes of the data match other items in the plotThis is primarily for reference data from external sources. If the units used in the reference data are differnt from those generated by psics, it can be rescaled by setting this to a two element vector. For example, the value '[1, 1000]]' will cause the data from the first column to be used as is, but the second column will be multiplied by 1000 before plotting. This would be needed, for example, if the reference data was in Volts and was to be compared with PSICS output in milliVolts.
labelplain textlabel to go in keyThe label to use in the key. If it is not set, the line will be labelled with the file name
functionplain textPlot a function of the data rather than the points themselves.Currently this can only take the single value 'mean' to have the mean of all the columns plotted.

Elements

Element typeRole
DataComparisonoptional comparisons with reference data
Statsoptional comparisons with reference data

View

A view on the data

within: LineGraph

Defines the axis ranges for a plot

Attributes

NameTypeDefinitionUnitsRangeRequired
ididentifierID for this view - the ids should be unique within a ViewConfig definitionyes
xminFloating point valuelower value of X axisnone()
xmaxFloating point valueupper value of X axisnone()
yminFloating point valuelower value of Y axisnone()
ymaxFloating point valueupper value of Y axisnone()

Elements - No child elements are allowed

Stats

Simple statistics

within: LineGraph

Calculate simple statistics of result data

Attributes

NameTypeDefinitionUnitsRangeRequired
xminFloating point valuems
xmaxFloating point valuems

Elements - No child elements are allowed

PowerSpectrum

Power spectrum plot

within: ViewConfig

Like the MeanVariance component, this has all the properties of a normal LineSet, but instead of plotting hte data directly, it computes the PSD and plots that.

Attributes

NameTypeDefinitionUnitsRangeRequired
filetext - the path to the file or folderThe name of the file containing the datayes
widthFloating point valuewidth for plotting linesnone(0.5, 10)
showWhole numberIf set, shows just the specified column from the file
maxshowWhole numberlimits the number of lines plotted from the file, defaulting to 20 if not specified(1, 100)
loglogFlagReturns log10(f) and log10(psd)"true" or "yes", "false" or "no"
colorplain textColor to plot the data inEither one of the recognized color names (red, green, blue, magenta, cyan etc) or a hex color such as #ff0000 (which would give red)
rescaleplain textOptional rescaling to make the axes of the data match other items in the plotThis is primarily for reference data from external sources. If the units used in the reference data are differnt from those generated by psics, it can be rescaled by setting this to a two element vector. For example, the value '[1, 1000]]' will cause the data from the first column to be used as is, but the second column will be multiplied by 1000 before plotting. This would be needed, for example, if the reference data was in Volts and was to be compared with PSICS output in milliVolts.
labelplain textlabel to go in keyThe label to use in the key. If it is not set, the line will be labelled with the file name
functionplain textPlot a function of the data rather than the points themselves.Currently this can only take the single value 'mean' to have the mean of all the columns plotted.

Elements

Element typeRole
DataComparisonoptional comparisons with reference data
Statsoptional comparisons with reference data

MeanVariance

Plot of variance against mean

within: ViewConfig

Mean-variance analysis of data. This includes all the parameters of a LineSet, but instead of plotting the raw data, it computes the mean and varianceover the given time window and plots the variance against the mean

Attributes

NameTypeDefinitionUnitsRangeRequired
filetext - the path to the file or folderThe name of the file containing the datayes
tminFloating point valueLower bound of region of interestnone(0,)
tmaxFloating point valueUpper bound of region of interestnone(0,)
binSizeFloating point valueBin size for meansnone(0,)
widthFloating point valuewidth for plotting linesnone(0.5, 10)
showWhole numberIf set, shows just the specified column from the file
maxshowWhole numberlimits the number of lines plotted from the file, defaulting to 20 if not specified(1, 100)
colorplain textColor to plot the data inEither one of the recognized color names (red, green, blue, magenta, cyan etc) or a hex color such as #ff0000 (which would give red)
rescaleplain textOptional rescaling to make the axes of the data match other items in the plotThis is primarily for reference data from external sources. If the units used in the reference data are differnt from those generated by psics, it can be rescaled by setting this to a two element vector. For example, the value '[1, 1000]]' will cause the data from the first column to be used as is, but the second column will be multiplied by 1000 before plotting. This would be needed, for example, if the reference data was in Volts and was to be compared with PSICS output in milliVolts.
labelplain textlabel to go in keyThe label to use in the key. If it is not set, the line will be labelled with the file name
functionplain textPlot a function of the data rather than the points themselves.Currently this can only take the single value 'mean' to have the mean of all the columns plotted.

Elements

Element typeRole
DataComparisonoptional comparisons with reference data
Statsoptional comparisons with reference data
Comparison
(max 1 instance)
Optional theoretical values for comparison

Comparison

Theoretical curve for a MeanVariance plot

within: MeanVariance

Comparison model for mean variance analysis. Based on the supplied single channel conductance and number of channels it generates the expected variance at for a range of values of the mean. Only applicable within a MeanVariance plot

Attributes

NameTypeDefinitionUnitsRangeRequired
iSingleFloating point valuesingle channel conductancenone(0,)
nChannelWhole numbernumber of channels(0,)

Elements - No child elements are allowed

previous ←   → next