HED JavaScript Library
    Preparing search index...

    Class BidsFile

    A BIDS file.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    file: any

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

    name: string

    The name of this file.

    Accessors

    • get validatorClass(): Function

      The validator class used to validate this file.

      Returns Function

      The validator class used to validate this file.

    Methods

    • Validate this validator's tsv file.

      Parameters

      • schemas: Schemas

        The HED schemas used to validate this file.

      Returns BidsHedIssue[]

      • Any issues found during validation of this TSV file.
    • 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.