start - AntonioST/NeuroCarto GitHub Wiki
Run.
neurocartoThen your default web-browser will popup (http://localhost:5006/) with the application.
- warning: we tested application in Google Chrome.
usage: neurocarto [-h] [-C PATH] [-P NAME] [--selector MODULE:NAME] [--atlas NAME]
[--atlas-root PATH] [--config-file FILE] [--view MODULE:NAME]
[--server-address URL] [--server-port PORT] [--no-open-browser]
[FILE]
positional arguments:
FILE open channelmap file.
options:
-h, --help show this help message and exit
Source:
-C PATH, --chmap-dir PATH
channel saving directory
Probe:
-P NAME, --probe NAME
use probe family. default use "npx" (Neuropixels probe family).
--selector MODULE:NAME
use which electrode selection method
Atlas:
--atlas NAME atlas mouse brain name
--atlas-root PATH atlas mouse brain download path
Bokeh Application:
--config-file FILE global config file.
--view MODULE:NAME install extra views in right panel
--server-address URL
--server-port PORT
--no-open-browser do not open browser when server starts

|
ChannelMap File
|
|
Electrode State Select/Unselect electrodes that captured by |
|
|
Electrode Category Set electrode category for electrodes captured
by |
|
|
Log Application logging messages. |
Probe[CODE] CURRENT/TOTAL.
CODE : current probe type.
TOTAL : total channel number.
CURRENT : number of electrodes selected as channels.

Bokeh provides figure tools, there are:
-
(mouse drag): figure view moving.
-
(mouse drag): select electrodes for setting its state and category.
-
(mouse wheel): figure view zoom -
(mouse wheel): vertical moving viewport. -
: moving background image.
(shifted-drag) move/scale image inside the dragged rectangle. -
: reset figure view
-
: display electrode information when mouse moves on electrodes.
-
: bokeh logo. Goto bokeh website on clicking.

Electrode colors indicate:
- black : selectable electrodes
- green: selected electrodes
- red: un-selectable (disabled) electrodes
- yellow: highlighted electrodes that related to the electrode captured by
.
Atlas mouse image. It requires extra package. Please check Atlas Mouse Brain.

All components have a common layout structures:
+-----------------+-------+-------+-----------+--------+
| visible_switch? | title | help? | controls? | status |
+-----------------+-------+-------+-----------+--------+
| custom contents |
+------------------------------------------------------+
-
Press New and choose a probe type to create/reset an empty channelmap.

-
Move the probe (shown in electrodes) to the proper place.
-
Use rectangle-tool in the figure toolbar to select electrodes.

Selected electrodes will be kept in black and highlighted in yellow, and other electrodes will be faded.
Other electrodes are also highlighted in yellow, which indicates they will be unable to be selected, according to Neuropixels’ hardware restriction.

-
Click Enable to set the captured electrodes as readout channels.

The yellow highlighted electrodes, except the captured ones, will disappear. However, they are still selectable and will overwrite the previous ones when they are enabled.
before:
after: 
-
Repeat picking until text becomes
at the top of the figure. -
Type the new filename for your channelmap in Save filename field.

-
Press Save.
You will see the messages in Log said files are saved.

Once you save a channelmap (use previous example), then you will get files under -C PATH:
-
First_map.imro: channelmap file -
First_map.blueprint.npy: electrode blueprint matrix -
First_map.config.json: view configurations of each component, such as the coordinate of atlas mouse image.
Once First_map.imro load, the other files are also loaded to restore states.
-
Press New and choose a probe type to create/reset an empty channelmap.
-
(optional) Move and adjust the atlas image to proper view according to your experimental goal.
For example, I want to record signals from the Hippocampus.
-
Change Slice view to coronal.

-
Move Slice Plane to 290.
-
Adjust other setting if needed.
-
use box-edit at the figure toolbar to move the atlas image to the proper position that the probe passes through the Hippocampus.

-
-
Move the probe (shown in electrodes) to the proper place.

-
Use rectangle-tool
in the figure toolbar to select electrodes in a particular area, then press one of the buttons in Electrode Category.

In this step, rather than directly selecting electrodes as readout channels, we set category on captured electrodes. By this category setting, we can build a blueprint for all electrodes, and the application will generate a channelmap follow the given blueprint.
There are recommended steps for building a blueprint.
-
Set electrodes outside the brain with Excluded category, so forbidden electrodes are never selected.
select
set 
-
Set electrodes around the regions of interest (Hippocampus structure here) with Set or Full Density category.

-
Set the other electrodes with a category.
-
A valid channelmap will be updated automatically
.
-
-
Check text becomes
at the top of the figure.
If not, it means the current blueprint isn’t compatible with the Neuropixels hardware restriction. Please check tips
-
Type the new filename for your channelmap in Save filename field.
-
Press Save.
TODO
