You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/user-guide-sharing/validating-files.md
+17-10Lines changed: 17 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,21 +4,13 @@
4
4
5
5
To be accepted by DANDI, NWB files must conform to criteria that are enforced via three levels of validation:
6
6
7
-
## NWB File Validation
7
+
###NWB File Validation
8
8
[PyNWB validation](https://pynwb.readthedocs.io/en/stable/validation.html) is used to validate the NWB files,
9
9
ensuring that they meet the specifications of core NWB and of any NWB extensions that were used. Generally
10
10
speaking, all files produced by PyNWB and MatNWB should pass validation, however there are occasional bugs. More
11
11
often, NWB files that fail to meet these criteria have been created outside PyNWB and MatNWB.
12
12
13
-
## Critical NWB Checks
14
-
The [NWB Inspector](https://nwbinspector.readthedocs.io/en/dev/) scans NWB files using heuristics to find mistakes
15
-
or areas for improvements in NWB files. There are three levels of importance for checks: `CRITICAL`,
16
-
`BEST PRACTICE VIOLATIONS`, and `BEST PRACTICE SUGGESTIONS`. `CRITICAL` warnings indicate some internal inconsistency in the data of the
17
-
NWB files. The NWB Inspector will print out all warnings, but only `CRITICAL` warnings will prevent a file from being
18
-
uploaded to DANDI. Errors in NWB Inspector will be block upload as well, but reflect a problem with the NWB
19
-
Inspector software as opposed to the NWB file.
20
-
21
-
## Missing DANDI Metadata
13
+
### Missing DANDI Metadata
22
14
DANDI has requirements for metadata beyond what is strictly required for NWB validation. The following metadata must
23
15
be present in the NWB file for a successful upload to DANDI:
24
16
@@ -33,6 +25,21 @@ be present in the NWB file for a successful upload to DANDI:
33
25
These requirements are specified in the
34
26
[DANDI configuration file of NWB Inspector](https://github.com/NeurodataWithoutBorders/nwbinspector/blob/dev/src/nwbinspector/internal_configs/dandi.inspector_config.yaml).
35
27
28
+
### Critical NWB Checks
29
+
The [NWB Inspector](https://nwbinspector.readthedocs.io/en/dev/) scans NWB files using heuristics to find mistakes or areas for improvements in NWB files. There are three levels of importance for checks: `CRITICAL`, `BEST PRACTICE VIOLATIONS`, and `BEST PRACTICE SUGGESTIONS`. `CRITICAL` warnings indicate some internal inconsistency in the data of the NWB files. The NWB Inspector will print out all warnings, but only `CRITICAL` warnings will prevent a file from being uploaded to DANDI. The NWB Inspector supports a special configuration for DANDI that includes additional checks relevant to DANDI. To use this configuration, you can specify the `--config dandi` option when running NWB Inspector.
30
+
31
+
You can run NWB Inspector locally by installing it via pip:
32
+
```bash
33
+
pip install nwbinspector
34
+
```
35
+
36
+
Then you can run it on your NWB file:
37
+
```bash
38
+
nwbinspector --config dandi path/to/yourfile.nwb
39
+
```
40
+
41
+
You can also use a directory as input, in which case it will recursively scan for NWB files.
42
+
36
43
Passing all of these levels of validation can sometimes be tricky. If you have any questions, please ask them via the
37
44
[DANDI Help Desk](https://github.com/dandi/helpdesk/discussions) and we would be happy to assist you.
0 commit comments