Skip to content

Commit d91a1d7

Browse files
Merge pull request #845 from NeurodataWithoutBorders/update_tutorial_text
Suggested improvements to tutorial text
2 parents 77d86ed + d7f4edb commit d91a1d7

File tree

3 files changed

+81
-60
lines changed

3 files changed

+81
-60
lines changed

docs/tutorials/dataset.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Example Dataset Generation
22
==========================
33

4-
Our tutorials focus on converting extracellular electrophysiology data in the SpikeGLX and Phy formats.
5-
To get you started as quickly as possible, we’ve created a way to generate this Neuropixel-like dataset at the click of a button!
4+
The NWB GUIDE tutorials focus on converting extracellular electrophysiology data in the SpikeGLX and Phy formats.
5+
To get started as quickly as possible, you can use NWB GUIDE to generate a Neuropixels-like dataset at the click of a button!
66

77
.. note::
88
The **SpikeGLX** data format stores electrophysiology recordings.
@@ -17,7 +17,9 @@ Navigate to the **Settings** page using the button at the bottom of the main sid
1717

1818
Press the Generate button on the Settings page to create the dataset.
1919

20-
The generated data will populate in the ``~/NWB_GUIDE/test_data`` directory, where ``~`` is the home directory of your system. This includes both a ``single_session_data`` and ``multi_session_dataset`` folder to accompany the following tutorials.
20+
The dataset will be generated in a new ``~/NWB_GUIDE/test_data`` directory, where ``~`` is the `home directory <https://en.wikipedia.org/wiki/Home_directory#Default_home_directory_per_operating_system>`_ of your system. This includes both a ``single_session_data`` and ``multi_session_dataset`` folder to use in the following tutorials.
21+
22+
The folder structure of the generated dataset is as follows:
2123

2224
.. code-block:: bash
2325
@@ -52,6 +54,4 @@ The generated data will populate in the ``~/NWB_GUIDE/test_data`` directory, whe
5254
│ │ └── mouse2_Session2/
5355
│ │ ...
5456
55-
56-
57-
Now you’re ready to start your first conversion using the NWB GUIDE!
57+
Now you're ready to start your first conversion using the NWB GUIDE!

docs/tutorials/multiple_sessions.rst

Lines changed: 22 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Managing Multiple Sessions
22
==========================
33

4-
Now, let’s say that youve already run some of your experiments and now you want to convert them all at the same time. This is where a multi-session workflow will come in handy.
4+
Now, let's imagine that you've already run multiple sessions of an experiment and now you want to convert them all to NWB at the same time. This is where a multi-session workflow will be useful.
55

66
Begin a new conversion on the **Convert** page and provide a name for your pipeline.
77

@@ -12,19 +12,23 @@ Update the Workflow page to indicate that you'll:
1212

1313
#. Run on multiple sessions
1414
#. Locate the source data programmatically
15-
#. Specify your dataset location ``~/NWB_GUIDE/test-data/multi_session_dataset``, where **~** is the home directory of your system.
15+
#. Specify your dataset location ``~/NWB_GUIDE/test-data/multi_session_dataset``, where ``~`` is the home directory of your system.
1616
#. Skip dataset publication.
1717

18+
Leave the rest of the settings as they are.
19+
1820
.. figure:: ../assets/tutorials/multiple/workflow-page.png
1921
:align: center
2022
:alt: Workflow page with multiple sessions and locate data selected
2123

2224
Data Formats
2325
------------
26+
2427
As before, specify **SpikeGLX Recording** and **Phy Sorting** as the data formats for this conversion.
2528

2629
Locate Data
2730
-----------
31+
2832
This page helps you automatically identify source data for multiple subjects / sessions as long as your files are organized consistently.
2933

3034
.. figure:: ../assets/tutorials/multiple/pathexpansion-page.png
@@ -34,33 +38,33 @@ This page helps you automatically identify source data for multiple subjects / s
3438
File locations are specified as **format strings** that define source data paths of each selected data format.
3539

3640
.. note::
37-
Format strings are one component of NeuroConv's **path expansion language**, which has some nifty features for manually specifying complex paths. Complete documentation of the path expansion feature of NeuroConv can be found :path-expansion-guide:`here <>`.
41+
Format strings are one component of NeuroConv's **path expansion language**, which has nifty features for manually specifying complex paths. Complete documentation of the path expansion feature can be found :path-expansion-guide:`here <>`.
3842

39-
While you dont have to specify format strings for all of the pipelines data formats, were going to find all of our data here for this tutorial. You'll always be able to confirm or manually select the final paths on the Source Data page later in the workflow.
43+
While you don't have to specify format strings for all of the pipeline's data formats, we're going to find all of our data here for this tutorial. You'll always be able to confirm or manually select the final paths on the Source Data page later in the workflow.
4044

4145
Format strings are specified using two components: the **base directory**, which is the directory to search in, and the **format string path**, where the source data is within that directory.
4246

4347
The base directory has been pre-populated based on your selection on the Workflow page.
4448

45-
To avoid specifying the format string path by hand, we can take advantage of **Autocomplete**. Click the **Autocomplete** button to open a pop-up form that will derive the format string from a single example path.
49+
To avoid specifying the format string path by hand, click the **Autocomplete** button to open a pop-up form that will derive the format string from a single example path.
4650

4751
.. figure:: ../assets/tutorials/multiple/pathexpansion-autocomplete-open.png
4852
:align: center
4953
:alt: Autocomplete modal on path expansion page
5054

51-
Provide an example source data path (for example, the ``multi_session_dataset/mouse1/mouse1_Session2/mouse1_Session2_phy`` file for Phy), followed by the Subject (``mouse1``) and Session ID (``Session1``) for this particular path.
55+
Provide a source data path for Phy by either dragging and dropping the folder ``multi_session_dataset/mouse1/mouse1_Session2/mouse1_Session2_phy`` into the **Example Folder** box or clicking the box and selecting a folder. Then enter the Subject ID (``mouse1``) and Session ID (``Session1``) for this particular path.
5256

5357
.. figure:: ../assets/tutorials/multiple/pathexpansion-autocomplete-filled.png
5458
:align: center
5559
:alt: Autocomplete modal completed
5660

57-
When you submit this form, youll notice that the Format String Path input has been auto-filled with a pattern for all the sessions.
61+
When you submit this form, you'll notice that the Format String Path input has been auto-filled with a pattern for all of the sessions, and a list of all of the source data found is shown in the gray box. Confirm that this list contains all four Phy folders.
5862

5963
.. figure:: ../assets/tutorials/multiple/pathexpansion-autocomplete-submitted.png
6064
:align: center
6165
:alt: Path expansion page with autocompleted format string
6266

63-
Repeat this process for SpikeGLX, where ``multi_session_dataset/mouse1/mouse1_Session2/mouse1_Session2_g0/mouse1_Session2_g0_imec0/mouse1_Session1_g0_t0.imec0.lf.bin`` will be the example source data path.
67+
Repeat this process for SpikeGLX, where ``multi_session_dataset/mouse1/mouse1_Session2/mouse1_Session2_g0/mouse1_Session2_g0_imec0/mouse1_Session1_g0_t0.imec0.ap.bin`` will be the example source data path.
6468

6569
.. figure:: ../assets/tutorials/multiple/pathexpansion-completed.png
6670
:align: center
@@ -70,15 +74,16 @@ Advance to the next page when you have entered the data locations for both forma
7074

7175
Subject Metadata
7276
----------------
73-
On this page you’ll edit subject-level metadata across all related sessions. Unlike the previous few pages, you’ll notice that
74-
Sex and Species both have gray asterisks next to their name; this means they are **loose requirements**, which aren’t currently required
77+
78+
On this page, you can edit subject-level metadata that is the same for all sessions. Unlike the previous few pages, you'll notice that
79+
Sex and Species both have gray asterisks next to their name; this means they are **loose requirements**, which aren't currently required
7580
but could later block progress if left unspecified.
7681

7782
.. figure:: ../assets/tutorials/multiple/subject-page.png
7883
:align: center
7984
:alt: Blank subject table
8085

81-
In this case, we have two subjects with two sessions each. Lets say that each of their sessions happened close enough in time that they can be identified using the same **age** entry: ``P29W`` for ``mouse1`` and ``P30W`` for ``mouse2``.
86+
In this case, we have two subjects with two sessions each. Let's say that each of their sessions happened close enough in time that they can be identified using the same **age** entry: ``P29W`` for ``mouse1`` and ``P30W`` for ``mouse2``.
8287

8388
We should also indicate the ``sex`` of each subject since this is a requirement for `uploading to the DANDI Archive <https://www.dandiarchive.org/handbook/135_validation/#missing-dandi-metadata>`_.
8489

@@ -90,16 +95,18 @@ Advance to the next page when you have entered subject metadata for all subjects
9095

9196
Source Data Information
9297
-----------------------
93-
Because we used the Locate Data page to programmatically identify our source data, this page should mostly be complete. You can use this opportunity to verify that the identified paths appear as expected for each session.
98+
99+
Because we used the Locate Data page to programmatically identify our source data, this page should mostly be complete. Verify that the identified paths appear as expected for each session by clicking the "Phy Sorting" header to expand the section for Phy data and examining the "Folder Path" value. Do the same for the SpikeGLX data.
94100

95101
.. figure:: ../assets/tutorials/multiple/sourcedata-page.png
96102
:align: center
97103
:alt: Complete source data forms
98104

99-
One notable difference between this and the single-session workflow, however, is that the next few pages will allow you to toggle between sessions using the **session manager** sidebar on the left.
105+
One notable difference between this and the single-session workflow is that the next few pages will allow you to toggle between sessions using the **session manager** sidebar on the left. Try this out. Under "Sessions", click "sub-mouse2" and "ses-Session1" to locate the source data for a different session from this subject.
100106

101107
Session Metadata
102108
----------------
109+
103110
Aside from the session manager, the file metadata page in the multi-session workflow is nearly identical to the single-session version.
104111

105112
.. figure:: ../assets/tutorials/multiple/metadata-nwbfile.png
@@ -108,15 +115,15 @@ Aside from the session manager, the file metadata page in the multi-session work
108115

109116
A complete General Metadata form
110117

111-
Acting as default metadata, the information supplied on the subject metadata page has pre-filled the Subject metadata for each session.
118+
The information supplied on the Subject Metadata page has been used to fill in the Subject metadata for each session.
112119

113120
.. figure:: ../assets/tutorials/multiple/metadata-subject-complete.png
114121
:align: center
115122
:alt: Complete Subject metadata form
116123

117124
A complete Subject metadata form
118125

119-
You'll notice that there's an **Edit Default Metadata** button at the top of the page. This feature allows you to specify a single default value for each property that is expected to be the same across all sessions. **Use this button to fill in general metadata for your sessions**, which will save you time and effort while ensuring your files still follow Best Practices.
126+
You'll notice that there's an **Edit Default Metadata** button at the top of the page. This feature allows you to specify a single default value for each property that is expected to be the same across all sessions. **Use this button to fill in general metadata for your sessions**, such as the Institution, which will save you time and effort while ensuring your files still follow Best Practices.
120127

121128
Finish the rest of the workflow as you would for a single session by completing a full conversion after you review the preview files with the NWB Inspector and Neurosift.
122129

0 commit comments

Comments
 (0)