CREATESUBJECTINFORMATION - Creates subject ID string and openMINDS objects for Birren lab data.
[subjectString, strain, species, biologicalSex] = ndi.setup.conv.birren.createSubjectInformation(tableRow)
This function processes a single row from a Birren lab information table,
generating a unique subject identifier string and corresponding openMINDS objects
for the species and strain. This function is modeled on the prototype from
ndi.setup.conv.dabrowska.createSubjectInformation.
The function derives a unique 'subjectIdentifier' for each entry by combining the
first 13 characters of the 'filename' column and the 'strain' and the 'subject' line
from Saya's spreadsheet: (e.g., '2024_09_27_01_SHR').
Args:
tableRow (table): A 1xN MATLAB table (single row). Must contain at least
the columns 'filename' and 'strain'.
Returns:
subjectString (char | NaN):
- A character array string for the subject identifier.
- Returns NaN if the required columns are missing or data is invalid.
strain (openminds.core.research.Strain | NaN):
- An openMINDS Strain object for 'SHR' or 'WKY' strains.
- Returns NaN if the strain is unknown or if object creation fails.
species (openminds.controlledterms.Species | NaN):
- An openMINDS Species object, hardcoded to 'Rattus norvegicus'.
- Returns NaN if object creation fails.
biologicalSex (NaN):
- Returns NaN as biological sex is not specified in the source data.