@@ -166,14 +166,8 @@ def add_file_info(
166166 experimenter : str | list = "unknown" ,
167167 license_number : str = "unknown" ,
168168 subject_id : str = "unknown" ,
169- species : str | list = ["mouse" , "rat" , "human" ],
170- strain : str | list = [
171- "C57BL/6J" ,
172- "C57BL/6JEi" ,
173- "C57BL/6N" ,
174- "129S1/SvImJ" ,
175- "BALB/c" ,
176- ],
169+ species : str | list = "mouse" ,
170+ strain : str = "C57BL/6J" ,
177171 genotype : str = "WT" ,
178172 date_of_birth : str = "YYYY-MM-DD" ,
179173 sex : str = "unknown" ,
@@ -190,15 +184,15 @@ def add_file_info(
190184 subject_id (str, optional): The ID of the subject involved in the experiment.
191185 Defaults to 'unknown'.
192186 species (str | list, optional): The species of the subject.
193- Defaults to [ 'mouse', 'rat', 'human'] .
194- strain (str | list , optional): The strain of the subject.
195- Defaults to [ 'C57BL/6J'] .
187+ Defaults to 'mouse', other options are 'rat', 'human'.
188+ strain (str, optional): The strain of the subject.
189+ Defaults to 'C57BL/6J'.
196190 genotype (str, optional): The genotype of the subject.
197191 Defaults to 'WT'.
198192 date_of_birth (str, optional): The date of birth of the subject in 'YYYY-MM-DD' format.
199193 Defaults to 'YYYY-MM-DD'.
200194 sex (str, optional): The sex of the subject.
201- Defaults to 'unknown'.
195+ Defaults to 'unknown', other options are 'male', 'female' .
202196 add (bool, optional): If True, appends the new file information to existing data.
203197 Defaults to True.
204198 """
@@ -214,6 +208,11 @@ def add_file_info(
214208 pass
215209 else :
216210 print ("Species not in default list ('mouse', 'rat', 'human')." )
211+ species = "unknown"
212+
213+ if sex not in ["unknown" , "male" , "female" ]:
214+ print ("Sex not in default list ('unknown', 'male', 'female')." )
215+ sex = "unknown"
217216
218217 for file in file_path :
219218 time_created = datetime .fromtimestamp (os .path .getctime (file ))
0 commit comments