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'.
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'.