Generating an example dataset#

In case you don’t have an entire experiment’s worth of NWB files, you can generate an example dataset by running:

nwb2bids tutorial ephys dataset

Tip

Lost in the CLI? Can’t remember the exact phrase to type when navigating through the command groups? No worries!

Simply add the --help to any command to see detailed descriptions, expected inputs, and optional flags.

You can also see a layout of the command structure by calling each level at a time, for example nwb2bids, nwb2bids tutorial, and so on.

Try it out on nwb2bids tutorial to see all the types of tutorial data we can generate for you.

Now we should have a directory that looks something like:

ecephys_tutorial_dataset/
├── ecephys_session_3.nwb
├── DO_NOT_CONVERT.nwb
└── some_sessions/
    ├── ecephys_session_1.nwb
    └── ecephys_session_1.nwb

Note

Don’t like overwhelming your home directory with lots of small files?

You can control where tutorial data is generated by using the --output-directory flag (or -o for short):

nwb2bids tutorial ephys file --output-directory path/to/some/directory

Other modalities#

You can also generate example NWB files for other modalities, such as icephys!

nwb2bids tutorial ephys dataset --modality icephys