AnDO package¶
Packages¶
ando.AnDOChecker module¶
-
ando.AnDOChecker.build_rule_regexp(rules)¶ Function that create rules base on the regexp in rulesStructured.py
- rules: list
list of filenames
- list_of_ruleslist
Concatenate every extension with is respective file
if : file_name_regexp = [
[‘sub-([a-zA-Z0-9]+)_ses-([a-zA-Z0-9]+)([w-]*)_ephys’], ]
then , list_of_rules = [
‘sub-([a-zA-Z0-9]+)_ses-([a-zA-Z0-9]+)([w-]*)_ephys.tsv’ ]
-
ando.AnDOChecker.is_valid(input_directory)¶ Checks the validity of a data set with respect to the BIDS-animal-ephys specifications.
The specifications that define what is checked by this function is available in the following document: https://docs.google.com/document/d/1oG-C8T-dWPqfVzL2W8HO3elWK8NIh2cOCPssRGv23n0
- input_directorystring
Name of the root directory containing the data set to be checked
- validboolean
True if the data set follows the ephys-BIDS specification; False if not
- error_listlist
List of errors (empty if the data set is valid)
-
ando.AnDOChecker.main()¶ Main file of the AnDOChecker.
usage: AnDOChecker.py [-h] [-v] path
positional arguments: directory Name of the directory that contains the data set to be checked
optional arguments: -h, –help show this help message and exit -v, –verbose increase output verbosity
-
ando.AnDOChecker.search(rules, where)¶