User Tools

Site Tools


analysis:nsb2017:week2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
analysis:nsb2017:week2 [2017/07/02 16:35]
mvdm
analysis:nsb2017:week2 [2023/04/13 12:20] (current)
Line 1: Line 1:
-~~DISCUSSION~~+~~DISCUSSION:off~~
  
 ===== Module 2: Introduction to neural data types, file formats and preprocessing ===== ===== Module 2: Introduction to neural data types, file formats and preprocessing =====
Line 108: Line 108:
 If at some point you want to construct a ''​tsd''​ variable yourself, you can do ''​help tsd''​ to see how. The ''​tsd()''​ function is a //​constructor//​ for variables of type ''​tsd''​. ''​LoadCSC()''​ calls this function to create an empty ''​tsd''​ template, and then fills it with data loaded from ''​.ncs''​ files; you can check if the result meets the specification by calling ''​CheckTSD()''​. If at some point you want to construct a ''​tsd''​ variable yourself, you can do ''​help tsd''​ to see how. The ''​tsd()''​ function is a //​constructor//​ for variables of type ''​tsd''​. ''​LoadCSC()''​ calls this function to create an empty ''​tsd''​ template, and then fills it with data loaded from ''​.ncs''​ files; you can check if the result meets the specification by calling ''​CheckTSD()''​.
  
-There are a number of functions that work with ''​tsd''​ data: some of these can be found in the tsd [[https://​github.com/​mvdm/​neuraldata-w16/​tree/​master/​shared/​datatypes/​tsd | folder]] in the %%GitHub%% repository. Two other important ones you will meet in this module are ''​restrict()''​ and ''​getd()''​ (which also work on other data types, below).+There are a number of functions that work with ''​tsd''​ data: some of these can be found in the tsd [[https://​github.com/​mvdm/​nsb2017/​tree/​master/​shared/​datatypes/​tsd | folder]] in the %%GitHub%% repository. Two other important ones you will meet in this module are ''​restrict()''​ and ''​getd()''​ (which also work on other data types, below).
  
 ==== Timestamp (TS) data-type ==== ==== Timestamp (TS) data-type ====
Line 188: Line 188:
 ☛ How many spikes did the second neuron emit in this session? ☛ How many spikes did the second neuron emit in this session?
  
-As with ''​tsd''​ data above, you can call the ts constructor ''​ts()''​ to start with a template that you can then fill with data if you want to build your own. The ts [[https://​github.com/​mvdm/​neuraldata-w16/​tree/​master/​shared/​datatypes/​ts | folder]] on %%GitHub%% contains some other utility functions that work with timestamp data.+As with ''​tsd''​ data above, you can call the ts constructor ''​ts()''​ to start with a template that you can then fill with data if you want to build your own. The ts [[https://​github.com/​mvdm/​nsb2017/​tree/​master/​shared/​datatypes/​ts | folder]] on %%GitHub%% contains some other utility functions that work with timestamp data. 
 ==== Interval (IV) data-type ==== ==== Interval (IV) data-type ====
  
Line 748: Line 749:
  
 NOTE: if you are on a Mac, you might get an error related to the ''​nearest_idx3''​ function; you can fix that for now by changing this to ''​nearest_idx''​ in the ''​PlotTSDfromIV''​ function. NOTE: if you are on a Mac, you might get an error related to the ''​nearest_idx3''​ function; you can fix that for now by changing this to ''​nearest_idx''​ in the ''​PlotTSDfromIV''​ function.
 +
analysis/nsb2017/week2.1499027717.txt.gz · Last modified: 2018/07/07 10:19 (external edit)