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
see [Create Folders](how-to-create-folders) for more details.
106
-
107
99
:::
108
100
::::
109
101
110
-
111
102
Now, this project is ready for creating and validating
112
-
folders to the [NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html) standard.
103
+
folders to the [NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html) standard. See the [create folders](how-to-create-folders)
104
+
and [validate folders](tutorial-validation) for details.
105
+
113
106
If you would also like to transfer files to a central machine, see the next section.
114
107
115
108
(set-up-a-project-for-transfer)=
116
109
## Set up a project for transfer
117
110
118
111
Above, we have set up a ``datashuttle`` project by providing the **project name**
119
-
and **local path**. For data transfer, transfer across the local filesystem or via SSH
120
-
is supported. Therefore, we will need to provide:
112
+
and **local path**. Transfer across the local filesystem or via SSH is supported.
113
+
Therefore, we will need to provide:
121
114
122
-
1)**central path**: location of the project on the central data storage machine.
115
+
1)**central path**: location of the project on the central storage machine.
123
116
2) Connection-specific settings (e.g. if using SSH).
124
117
125
118
```{image} /_static/datashuttle-overview-dark.png
@@ -313,7 +306,6 @@ Clicking `Save` will save these project configs. A button
Copy file name to clipboardExpand all lines: docs/source/pages/user_guides/validate.md
+12-12Lines changed: 12 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,8 @@ Below we will cover how to validate a datashuttle-managed project
14
14
# Validating a local project
15
15
16
16
Validation will highlight validation errors within a project. For example, consider
17
-
``my_project``, which has a NeuroBlueprint error (a subject that does not have an integer value):
17
+
``my_project``, which has a [NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html)
18
+
error (a subject that does not have an integer value):
18
19
19
20
```shell
20
21
└── my_project/
@@ -54,7 +55,7 @@ for details on the options.
54
55
55
56
Project validation can be run with the [](datashuttle.DataShuttle.validate_project) function.
56
57
57
-
Violations of the NeuroBlueprint can be set to raise an error, be displayed as warnings or printed as output.
58
+
Violations of the [NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html) can be set to raise an error, be displayed as warnings or printed as output.
# UserWarning: BAD_VALUE: The value for prefix sub in name sub-abc is not an integer. Path: <path to folder>
72
73
```
73
74
74
-
This outputs any NeuroBlueprint validation as a warning.
75
+
This outputs any [NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html) validation as a warning.
75
76
76
77
The returned ``error_messages`` is a last of strings containing all validation errors, to be used if required e.g.:
77
78
@@ -81,7 +82,7 @@ print(error_messages)
81
82
```
82
83
83
84
The options for `display_mode` and ``"error"``, ``"warn"`` and ``"print"``.
84
-
For `"error"`, only the first encountered NeuroBlueprint violation will be raised.
85
+
For `"error"`, only the first encountered [NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html) violation will be raised.
85
86
86
87
:::
87
88
@@ -100,11 +101,10 @@ use ``strict_mode``.
100
101
101
102
## ``strict_mode``
102
103
103
-
In strict-mode, all folders outside the
104
-
``datatype``]()
105
-
folder (e.g. ``"ephys"``) must be NeuroBlueprint-formatted.
104
+
In strict-mode, all folders outside the ``datatype`` folder (e.g. ``"ephys"``)
105
+
must be [NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html)-formatted.
106
106
107
-
NeuroBlueprint does not require all folders in the project to be NeuroBlueprint-formatted ``sub-``, ``ses-`` or
107
+
[NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html) does not require all folders in the project to be [NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html)-formatted ``sub-``, ``ses-`` or
108
108
datatype folders.
109
109
110
110
For example, ``some_other_folder``:
@@ -119,10 +119,10 @@ For example, ``some_other_folder``:
119
119
```
120
120
121
121
However, this means it is hard to validate all folder names, as it is not possible to determine whether
122
-
these are mistkaes e.g. ``rat-001`` or auxiliary folders. By default, ``datashuttle`` will only look for
122
+
these are mistakes e.g. ``rat-001`` or auxiliary folders. By default, ``datashuttle`` will only look for
123
123
``sub-`` or ``ses-`` prefixed files to validate.
124
124
125
-
In ``strict_mode``, non-NeuroBlueprint formatted folders are not allowed (except within datatype folders).
125
+
In ``strict_mode``, non-[NeuroBlueprint](https://neuroblueprint.neuroinformatics.dev/latest/index.html) formatted folders are not allowed (except within datatype folders).
126
126
Therefore, any additional folders at the subject or session level will raise a validation error, for example:
127
127
128
128
```python
@@ -140,9 +140,9 @@ project.validate_project(
140
140
141
141
Validation can be performed across all folders in projects in which data is transferred
142
142
between a 'local' and 'central' machine. The validation will combine ``sub-`` and ``ses-``
143
-
folders across 'local' and 'central' before validation. This is useful check against inconsistent value lengths
143
+
folders across local and central before validation. This is useful check against inconsistent value lengths
144
144
(e.g. `sub-001` vs `sub-02`) and duplicate names (e.g. ``sub-001`` and ``sub-001_date-20240101``) across
145
-
the 'local' and 'central' project.
145
+
the local and central project.
146
146
147
147
To perform this type of validation, connection configurations [must be set](set-up-a-project-for-transfer).
148
148
The ``include_central`` argument must be set to ``True``:
0 commit comments