Skip to main content
Module

x/bids_validator/summary/collectSubjectMetadata.ts>collectSubjectMetadata

Validator for the Brain Imaging Data Structure
Latest
variable collectSubjectMetadata
import { collectSubjectMetadata } from "https://deno.land/x/bids_validator@v1.14.13/summary/collectSubjectMetadata.ts";

Go from tsv format string with participant_id as a required header to array of form [ { participantId: 'participant_id_1' foo: 'x', ... }, { participantId: 'participant_id_2' foo: 'y', ... } ... ]

returns null if participant_id is not a header or file contents do not exist

type

(participantsTsvContent: string) => SubjectMetadata[]