HED JavaScript Library
    Preparing search index...

    Class BidsTsvFile

    A BIDS TSV file.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    file: any

    The Object representing this file data. This is used to generate BidsHedIssue objects.

    hedColumnHedStrings: string[]

    HED strings in the "HED" column of the TSV data.

    mergedSidecar: BidsSidecar

    The pseudo-sidecar object representing the merged sidecar data.

    name: string

    The name of this file.

    parsedTsv: Map<string, string[]>

    This file's parsed TSV data.

    Accessors

    • get hasHedData(): boolean

      Determine whether this file has any HED data.

      Returns boolean

    • get isTimelineFile(): boolean

      Whether this TSV file is a timeline file.

      Returns boolean

    • get validatorClass(): Function

      The validator class used to validate this file.

      Returns Function

      The validator class used to validate this file.

    Methods

    • Read a BIDS file from a path.

      Parameters

      • filePath: string

        The actual path of the file.

      Returns Promise<any[]>

      A Promise that resolves to a two-element array containing the file contents and a mocked BIDS-type file object.

    • Read a BIDS file from a relative path within a dataset.

      Parameters

      • datasetRoot: string

        The root path of the dataset.

      • relativePath: string

        The relative path of the file within the dataset.

      Returns Promise<any[]>

      A Promise that resolves to a two-element array containing the file contents and a mocked BIDS-type file object.