HED JavaScript Library
    Preparing search index...

    Function getMergedSidecarData

    • Get the merged sidecar for a given TSV file.

      This function implements the BIDS inheritance principle for sidecar files. It finds all applicable sidecars for a given TSV file, sorts them by specificity, checks for conflicts, and then merges them.

      Note: This function assumes that the sidecars are already parsed and stored in a Map.

      Note: This function should not be called for files in directories with special association rules such as 'phenotype'.

      Parameters

      • tsvPath: string

        The path to the TSV file.

      • jsonList: string[]

        A list of relative paths of JSON sidecars.

      • sidecarMap: Map<string, BidsSidecar>

        A map of sidecars.

      Returns any

      The merged sidecar data.

      If a BIDS inheritance conflict is detected.