Changeset 277 for trunk/doc/spike2.txt

Show
Ignore:
Timestamp:
11/03/08 19:45:04 (5 years ago)
Author:
apdavison
Message:

Minor fixes in docs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/doc/spike2.txt

    r271 r277  
    33========================= 
    44 
    5 The spike2 module offers an easy way for reading data from CED's Spike2 Son files into the NeuroTools enviroment. 
     5The ``spike2`` module offers an easy way for reading data from CED's Spike2 Son files into the NeuroTools environment. 
    66 
    7 The main interaction with with Spike2 files is provided by the SON Library which was written by: 
    8 Antonio Gonzalez 
    9 Department of Neuroscience 
    10 Karolinska Institutet 
    11 Antonio.Gonzalez@cantab.net 
    12 http://www.neuro.ki.se/broberger/ 
     7The main interaction with with Spike2 files is provided by the SON Library which was written by:: 
    138 
    14 The spike2 module integrates the SON library such that the loading function directly returns NeuroTools.signals objects. 
     9 Antonio Gonzalez 
     10 Department of Neuroscience 
     11 Karolinska Institutet 
     12 Antonio.Gonzalez at cantab.net 
     13 http://www.neuro.ki.se/broberger/ 
     14 
     15The ``spike2`` module integrates the SON library such that the loading function directly returns ``NeuroTools.signals`` objects. 
    1516This makes it very easy to apply certain analysis routines on simulated and real experimental data. 
    1617 
     
    1920---------------- 
    2021 
    21 Usually SON files contain data from multiple channels. The channels can contain analog signals, like membrane potential traces or discrete data like markers. The spike2 module knows which type of channel you are loading and thus returns the appropriate NeuroTools.signal object. 
     22Usually SON files contain data from multiple channels. The channels can contain analog signals, like membrane potential traces or discrete data like markers. The ``spike2`` module knows which type of channel you are loading and thus returns the appropriate ``NeuroTools.signals`` object. 
    2223 
    2324Here some examples how one can simply load the data. For the following example we assume that the SON file contains the membrane potential trace in channel 1, the markers in channel 2 and in channel 3 is data that we dont want to use: 
    2425         
    25 To load the spike2 module you could do the following:: 
     26To load the ``spike2`` module you could do the following:: 
    2627         
    2728        >>> import NeuroTools.spike2.spike2channels as spike2 
     
    3334        [1,2,3] 
    3435 
    35 since we dont need channel 3 we can use the channels parameter to specify which channel to load:: 
     36since we don't need channel 3 we can use the channels parameter to specify which channel to load:: 
    3637         
    3738        >>> just_needed_channels = spike2.load(filename, channels=[1,2]) 
     
    4647        <class 'NeuroTools.spike2.spike2channels.Marker'> 
    4748 
    48 what can I now do with it? I.e. the Adc channel type is inherited from signals.AnalogSignal and thus you could plot an event_triggered_average on the marker times (please note that the markers are in seconds, we need them in milliseconds therefore the factor 1000):: 
     49what can I now do with it? I.e. the Adc channel type is inherited from ``signals.AnalogSignal`` and thus you could plot an event_triggered_average on the marker times (please note that the markers are in seconds, we need them in milliseconds therefore the factor 1000):: 
    4950 
    5051        >>> vm = just_needed_channels[1] 
     
    5657        >>> vm_sclices = vm.slice_by_events(marker.times*1000.,t_min=100,t_max=1000) 
    5758 
    58 For further examples of what to do with NeuroTools.signals objects, please refer to documentation of the signals modules. 
     59For further examples of what to do with ``NeuroTools.signals`` objects, please refer to the documentation for the ``signals`` module. 
    5960 
    6061