% NWB parameters for an animal
% Parameters that are likely to change:
%   animalID
%   dob
%   firstProcedureDate
%   sex
%   weight
%   description

animalID = 'M190114_A_MD';
dob = '20181104';
dob = datetime(str2double(dob(1:4)), str2double(dob(5:6)), str2double(dob(7:8))); % Convert to datetime format
firstProcedureDate = '20190114';
firstProcedureDate = datetime(str2double(firstProcedureDate(1:4)), str2double(firstProcedureDate(5:6)), str2double(firstProcedureDate(7:8)));
ageInDays = floor(etime(datevec(firstProcedureDate),datevec(dob))/(3600*24));
age = ['P' num2str(ageInDays) 'D']; % Convert to ISO8601 format: https://en.wikipedia.org/wiki/ISO_8601#Durations
strain = 'C57BL/6J';
sex = 'M';
species = 'Mus musculus';
weight = 24.2;
description = '002'; % Animal testing order.
animalRawDataFolder = [rawDataFolder filesep animalID]; % Raw and certain derived data for the animal. Probe map and unit waveforms files are stored here.
animalDerivedDataFile = [derivedDataFolder filesep animalID filesep animalID '.mat']; % Spiking, behavioural, and certain analysis data produced after running analyses routines on the Neuroscience Gateway Portal are stored here in a single mat file.
animalDerivedDataFolderNWB = [derivedDataFolderNWB filesep animalID]; % The output folder: The location where derived data after converting to the NWB format is stored.