Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.15.0/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[]