Skip to content

CLASS ndi.setup.daq.metadatareader.AngelucciStims

  NDI_DAQMETADATAREADER_ANGELUCCISTIMS - a class for reading stims from Angelucci lab example data


Superclasses

ndi.daq.metadatareader, ndi.ido, did.ido, ndi.documentservice

Properties

Property Description
tab_separated_file_parameter
identifier

Methods

Method Description
AngelucciStims Create a new multifunction DAQ object
eq are 2 ndi.daq.metadatareader objects equal?
get_ingested_document get an ingested document for a set of epochfiles
id return the identifier of an DID.IDO object
ingest_epochfiles create an ndi.document that describes the data that is read by an ndi.daq.metadatareader
newdocument create a new ndi.document for an ndi.daq.metadatareader object
readmetadata PARAMETERS = READMETADATA(NDI_DAQSYSTEM_STIMULUS_OBJ, EPOCHFILES)
readmetadata_ingested PARAMETERS = READMETADATA_INGESTED(NDI_DAQSYSTEM_STIMULUS_OBJ, EPOCHFILES, S)
readmetadatafromfile read in metadata from the file that is identified
searchquery create a search for this ndi.daq.reader object
unique_id Generate a unique ID number for DID databases (Static method)

Methods help

AngelucciStims - Create a new multifunction DAQ object

D = NDI_DAQMETADATAREADER_ANGELUCCI_STIMS()
   or
   D = ndi.daq.metadatareader(STIMDATA_MAT_FILE)

   Creates a new ndi.daq.metadatareader object. If TSVFILE_REGEXPRESSION
   is given, it indicates a regular expression to use to search EPOCHFILES
   for a tab-separated-value text file that describes stimulus parameters.

    Documentation for ndi.setup.daq.metadatareader.AngelucciStims/AngelucciStims
       doc ndi.setup.daq.metadatareader.AngelucciStims

eq - are 2 ndi.daq.metadatareader objects equal?

TF = EQ(NDI_DAQMETADATAREADER_OBJ_A, NDI_DAQMETADATAREADER_OBJ_B)

  TF is 1 if the two objects are of the same class and have the same properties.
  TF is 0 otherwise.

Help for ndi.setup.daq.metadatareader.AngelucciStims/eq is inherited from superclass ndi.daq.metadatareader

get_ingested_document - get an ingested document for a set of epochfiles

D = GET_INGESTED_DOCUMENT(NDI_DAQMETADATAREADER_OBJ, EPOCHFILES, S)

  Returns empty if there is no such document or the single docment if
  there is such a document.

Help for ndi.setup.daq.metadatareader.AngelucciStims/get_ingested_document is inherited from superclass ndi.daq.metadatareader

id - return the identifier of an DID.IDO object

IDENTIFIER = ID(DID.IDO_OBJ)

  Returns the unique identifier of an DID.IDO object.

Help for ndi.setup.daq.metadatareader.AngelucciStims/id is inherited from superclass did.ido

ingest_epochfiles - create an ndi.document that describes the data that is read by an ndi.daq.metadatareader

D = INGEST_EPOCHFILES(NDI_DAQMETADATAREADER_OBJ, EPOCHFILES)

  Creates an ndi.document of type 'daqmetadatareader_epochdata_ingested' that contains the data
  for an ndi.daq.metadatareaderobject. The document D is not added to any database.

Help for ndi.setup.daq.metadatareader.AngelucciStims/ingest_epochfiles is inherited from superclass ndi.daq.metadatareader

newdocument - create a new ndi.document for an ndi.daq.metadatareader object

DOC = NEWDOCUMENT(ndi.daq.metadatareader OBJ)

  Creates an ndi.document object DOC that represents the
     ndi.daq.reader object.

Help for ndi.setup.daq.metadatareader.AngelucciStims/newdocument is inherited from superclass ndi.daq.metadatareader

readmetadata - PARAMETERS = READMETADATA(NDI_DAQSYSTEM_STIMULUS_OBJ, EPOCHFILES)

Returns the parameters (cell array of structures) associated with the
  stimulus or stimuli that were prepared to be presented in epoch with file list EPOCHFILES.

  If the property 'tab_separated_file_parameter' is not empty, then EPOCHFILES will be searched for
  files that match the regular expression in 'tab_separated_file_parameter'. The tab-separated-value
  file should have the form:

  STIMID<tab>PARAMETER1<tab>PARAMETER2<tab>PARAMETER3 (etc) <newline>
  1<tab>VALUE1<tab>VALUE2<tab>VALUE3 (etc) <newline>
  2<tab>VALUE1<tab>VALUE2<tab>VALUE3 (etc) <newline>
   (etc)

  For example, a stimulus file for an interoral cannula might be:
  stimid<tab>substance1<tab>substance1_concentration<newline>
  1<tab>Sodium chloride<tab>30e-3<newline>
  2<tab>Sodium chloride<tab>300e-3<newline>
  3<tab>Quinine<tab>30e-6<newline>
  4<tab>Quinine<tab>300e-6<newline>

  This function can be overridden in more specialized stimulus classes.

Help for ndi.setup.daq.metadatareader.AngelucciStims/readmetadata is inherited from superclass ndi.daq.metadatareader

readmetadata_ingested - PARAMETERS = READMETADATA_INGESTED(NDI_DAQSYSTEM_STIMULUS_OBJ, EPOCHFILES, S)

Returns the parameters (cell array of structures) associated with the
  stimulus or stimuli that were prepared to be presented in epoch with file list EPOCHFILES.
  S is the ndi.session object associated with the data.

Help for ndi.setup.daq.metadatareader.AngelucciStims/readmetadata_ingested is inherited from superclass ndi.daq.metadatareader

readmetadatafromfile - read in metadata from the file that is identified

PARAMETERS = READMETADATAFROMFILE(NDI_DAQMETADATAREADER_ANGELUCCI_STIMS_OBJ, FILE)

  Given a file that matches the metadata search criteria for an NDI_DAQMETADATAREADER_ANGELUCCI_STIMS
  document, this function loads in the metadata.

searchquery - create a search for this ndi.daq.reader object

SQ = SEARCHQUERY(NDI_DAQMETADATAREADER_OBJ)

  Creates a search query for the ndi.daq.metadatareader object.

Help for ndi.setup.daq.metadatareader.AngelucciStims/searchquery is inherited from superclass ndi.daq.metadatareader

unique_id - Generate a unique ID number for DID databases (Static method)

ID = DID.IDO.UNIQUE_ID()

  Generates a unique ID character array based on the current time and a random
  number. It is a hexidecimal representation of the serial date number in
  UTC Leap Seconds time. The serial date number is the number of days since January 0, 0000 at 0:00:00.
  The integer portion of the date is the whole number of days and the fractional part of the date number
  is the fraction of days.

  ID = [NUM2HEX(SERIAL_DATE_NUMBER) '_' NUM2HEX(RAND)]

  See also: NUM2HEX, NOW, RAND

Help for ndi.setup.daq.metadatareader.AngelucciStims.unique_id is inherited from superclass did.ido