Class: BidsHedTsvParser

BidsHedTsvParser(tsvFile, hedSchemas)

Class that performs basic parsing and splicing.

Constructor

new BidsHedTsvParser(tsvFile, hedSchemas)

Constructor.
Parameters:
Name Type Description
tsvFile BidsTsvFile The BIDS TSV file being parsed.
hedSchemas Schemas The HED schema collection being parsed against.
Source:

Classes

BidsHedTsvParser

Members

hedSchemas :Schemas

The HED schema collection being parsed against.
Type:
Source:

tsvFile :BidsTsvFile

The BIDS TSV file being parsed.
Type:
Source:

Methods

_parseElementStrings(elements) → {Array}

Parse element HED strings.
Parameters:
Name Type Description
elements Array.<BidsTsvElement> The objects representing tsv rows with their parsed HEd strings.
Source:
Returns:
- [BidsHedIssue[], BidsHedIssue[]] The errors and warnings resulting in creating the parsed HED strings.
Type
Array

parse() → {Array}

Combine the BIDS sidecar HED data into a BIDS TSV file's HED data.
Source:
Returns:
- Returns a two-element array [BidsTsvElement[], BidsHedIssue[], BidsHedIssue[]].
Type
Array

spliceValues(columnMap)

Update the map to splice-in the values for columns that have splices.
Parameters:
Name Type Description
columnMap Map Map of column name to HED string for a row. Note: Updates the map in place.
Source: