Complete workflow

The full session: stimulation parameters, electrode configuration, scale ratings and notes, recorded configuration by configuration.

The screen is a four-step wizard. Steps 2 and 4 share a two-row layout that follows the order the work is actually done in: what was delivered on top (parameters and electrodes), what was observed below (scales and notes).

A visit from the home screen: a new file, the stimulation parameters, the lead, the clinical scales, then three configurations rated and inserted, with the charts and table below.

Step 1: File

The File step with a patient ID and run entered, and an opened file reporting 39 rows loaded

The File step, with an existing session opened.

Enter the patient ID, the task and the run number, then choose where to save. The task is programming unless you name another; whatever you type becomes the task- part of the BIDS filename and the TaskName in its sidecar, so a study that labels its tasks differently can keep its own scheme. Like every BIDS label it keeps letters and digits only.

New asks whether this visit is a loose TSV or goes straight into a BIDS dataset.

The dialog asking whether to save the visit as a loose TSV or into a dataset

A loose TSV goes wherever you choose. The app composes the BIDS filename and creates the file straight away, along with its .json sidecar, so every later insert has somewhere to go.

Into a dataset asks for the dataset folder, which must be a BIDS dataset or an empty folder to start one in (see what counts as a BIDS dataset). If the folder you picked is neither, Choose another folder opens the picker again. It then asks for the session label, proposed as today’s date but editable: ses-YYYYMMDD is this app’s convention, and plenty of studies use ses-preop or ses-3mo. As you type, the dialog shows the label as it will be filed (3-mo becomes 3mo).

A dataset can hold any number of recordings per participant and session: several ses-preop visits, programming and notes side by side. The one thing two files cannot share is the whole name, participant, session, task and run together, because the second would replace the first on disk. So when the name this visit would get is already in the dataset, the dialog says so and the visit is filed under the next free run instead (run-02, run-03), and the Run field changes to match. Nothing is refused and nothing is overwritten. The label you choose is also the one used when you export this visit. The visit is filed at its BIDS path when the first block is inserted, not when the file is created: a dataset holding a header-only TSV that no scans.tsv lists is one that does not validate, and before the first block there is nothing to file. From then on every insert rewrites it in place, and the dataset index files stay consistent. It goes through the same rules as adding to a dataset, so your dataset_description.json and participants.tsv columns (the dataset’s own description and participant list) are safe. This option is available on Windows, macOS and Linux. On iPadOS and Android, which do not let an app write into a folder you pick, the choice still appears with Into a dataset greyed out and the reason beneath it: record a loose TSV, then add it to a dataset later from Reports.

The session label prompt, proposing the date and editable

Before recording starts, a dialog shows the dataset folder and the exact path the visit will be filed under, such as sub-01/ses-20260203/beh/sub-01_ses-20260203_task-programming_run-01_beh.tsv, with the rule for what is added: the file and its sidecar, a row in participants.tsv and one in that session’s scans.tsv. Recording does not update the dataset’s combined table under derivatives/dbs-annotator-aggregate/ entry by entry. It is refreshed once when the recording ends: when you leave the screen, close the window, or start or open another file. If the recording is interrupted, the table leaves out this visit until the next merge from Reports or the next visit recorded into the dataset refreshes it.

The confirmation showing the path the visit will be filed under in the dataset

Whichever you choose, every entry is also written to a working copy inside the app as you record, so a crash or a closed window loses nothing. When you leave the workflow, or close the app window on Windows, macOS or Linux, the app asks whether to keep that copy or discard it. Kept, it is offered back the next time you open this workflow; discarded, it is gone and nothing is offered. It is never deleted without that answer: after a crash, or when a tablet or phone app is swiped away, the copy is always kept.

The question on leaving: keep or discard the recovery copy

Asked when you leave the workflow or close the window.

When a copy was kept, the next time you open the workflow it is offered back:

The offer to reopen an unfinished session, with Discard and Reopen

Reopen continues the session; Discard deletes the copy. Closing the dialog any other way keeps it for next time.

Open existing TSV loads a session recorded earlier, and appends to it. The status line under the buttons reports what was found: the row count, the next block number, and the append number (append_id in the file: how many times it has been reopened to add blocks), so an append is never a guess. Opening a file also adopts the electrode models named in that file, one per side, so the lead diagrams show the patient’s actual hardware rather than whatever the dropdown last held. If the file names a model that is not in the catalogue, the app says so rather than drawing the wrong lead.

A file that is not a programming session, an annotations file for instance, is refused with an explanation rather than loading as empty rows.

A session file can carry columns this app does not keep: one added by hand or by another tool, a header name that appears twice, a value under a blank header, or a row with more cells than the header. The app writes only the columns of the format, so saving over such a file would delete that data. When Open existing TSV finds any, the message names them (for example The app does not keep these columns: lab_flag. Your file is left unchanged.) and the app never writes to that file. You can still add blocks: every insert is saved in the app’s own recovery copy, as for a new session that has not been exported yet, so leaving the screen asks whether to keep that copy. A line beside Export repeats the names of the unkept columns for as long as the file is open. Export then saves the session without them, under a name you choose, and on the desktop refuses the file you opened as a target, as does New. On Android and iOS the opened file is the app’s own copy of your file, so there is nothing to refuse. Opening another file, or starting or reopening a session, ends this mode. Older files that spell a column the way earlier versions did, such as block_ID or a separate date, time and timezone, are read as before and do not count as unkept.

Step 2: Initial configuration

The state the patient arrived in, before anything is changed.

Initial configuration: electrode model, program, per-side parameters and amplitude split on the left, lead diagrams on the right, clinical scales and notes below

Step 2 with a baseline configuration entered: current steered across two segments of level 2 on the left lead, and the OCD clinical scale set.

Electrode model. Choose the implanted lead. The catalogue covers Medtronic, Boston Scientific, Abbott, PINS and ALEVA leads, including segmented (directional) models. The diagrams are drawn to each lead’s real contact heights and spacings, so two different leads look different. Same model on both sides is ticked by default; untick it when the two leads differ, and a second menu sets the right lead. Each side’s model is written to its own column.

Parameters, per side. Frequency, amplitude and pulse width, with quick-pick presets. When more than one cathode is active, an amplitude split appears so you can set the percentage per contact. Those are the E2b and E2c rows in the screenshot above, each showing the milliamps its share works out to.

Clinical scales. The baseline assessment: disease-specific scores such as Y-BOCS or UPDRS-III. Disease presets fill the list in with a tap.

Notes. Free text. Unlike the recording step, these persist after inserting, so you can keep refining the baseline description.

Inserting records this as the baseline block (is_initial = 1).

Several cards have a gear that edits the choices they offer. These are presets: they apply to every future session and live in the app’s own preferences, never in a session file, so editing one changes nothing already recorded. The dialogs below are the ones you meet in this step.

Programs

The Programs dialog, a simple editable list of program labels

Opened by the gear beside the Program card in steps 2 and 4.

The program labels offered by the dropdown: A, B, C and so on, or whatever your centre uses. Stored as a preset, so the list you build is there next session.

Parameter presets

The parameter presets dialog with tabs for Frequency, Amplitude and Pulse width

Opened by the gear beside Parameters in steps 2 and 4.

The quick-pick chips under each stimulation field, one tab per parameter. These are shortcuts, not limits: each field accepts any value within the permitted range for that parameter, whether or not it is in this list.

A value that is not a number, or that falls outside the permitted range, is refused with the reason shown in the dialog rather than being silently dropped.

Clinical scales settings

The clinical scales settings dialog, a group list on the left and the selected group's scale names on the right

Opened by the gear on the Clinical scales card in step 2.

Edits the disease preset buttons for the baseline assessment: the group names (OCD, MDD, PD, ET, Dystonia, TS), the scale names inside each, and each scale’s Min and Max. The range is optional and is used only to draw the longitudinal report’s clinical figure on the scale’s own axis; it is never printed. The bundled scales come with their published total ranges where a name identifies one instrument (Y-BOCS 0 to 40, MADRS 0 to 60, and so on). Names that stand for more than one, such as HAM-D, UPDRS-III or MDS-UPDRS, are left blank for you to fill in.

Selecting contacts

Tap a contact to cycle it from off, to anode, to cathode, and back to off. Tap the case to use it as the return. Segmented levels show their three segments plus a Ring strip that activates the whole level at once.

Both leads with a valid configuration, each pane reporting "Configuration valid" in green, above the polarity key

A valid configuration: two segments of level 2 as cathodes on the left, a ring contact on the right, the case as the return on both.

Invalid combinations are applied anyway and flagged as you build them, so you can work through a configuration in whatever order suits you rather than having edits rejected mid-way:

The left pane showing a red "Invalid" box because the cathodes have no return path

The same cathodes with no return path selected. The change is kept; the pane says why it will not stimulate.

Narrow screens

Below about 900 logical pixels (a phone, or a tablet held in portrait) the two rows stack into one column. Everything is present; there is simply more scrolling.

The same step in a single stacked column on a narrow screen

Step 2 in the single-column layout.

Step 3: Session scales configuration

Session scales configuration with the OCD preset applied, one row per scale with a name, minimum and maximum

The scale set that will be rated at every configuration.

Name the scales to be rated at every configuration, with a minimum and maximum for each. Keeping the set fixed for the whole session is what makes the ratings comparable between configurations.

Choosing a disease preset here, or having chosen one in step 2, fills the list. The gear icon edits the presets themselves, which persist between sessions. Nothing on this step is written to the file; it defines what step 4 will ask for.

Session scales settings

The session scales settings dialog, whose rows carry a minimum and a maximum as well as a name

Opened by the gear on Session scales configuration in step 3.

The same shape as the clinical dialog, with one difference: each row here also carries a minimum and maximum. Session scales are rated on a slider at every configuration, so they need a range; clinical scales are typed once, so they do not.

Step 4: Recording

The loop, repeated once per configuration tried.

The Recording step: program, parameters and lead diagrams above; scale ratings and notes below, with the Insert button

One configuration rated and ready to insert. Energy is marked not assessed.

Set the parameters and contacts as in step 2, then rate each scale. A scale that was not assessed can be marked omitted, which writes n/a rather than a made-up number. That is the grey bar with the crossed-out icon in the screenshot above.

Anything observed at that configuration, a side effect included, goes in the block’s Notes, which belong to the configuration active when they were typed.

Insert to record the block. The notes clear, ready for the next one; the parameters stay, so a single amplitude change is one edit rather than a full re-entry.

Patient leaves on this, above the Insert button, marks the block being inserted as the configuration the patient goes home with (is_final in the file). Each export, as a report, the TSV or a BIDS dataset, asks which block that is, defaulting to the one marked, else the last, with Not recorded as a choice. Leaving the workflow or closing the window does not ask, so a session that is closed without being exported records no choice. Reports call a configuration “left on” only when it was marked this way, and “last recorded” otherwise.

Exporting a report also asks, optionally, who recorded the session and who rated the scales. The names are printed in the report’s attestation block and saved nowhere else.

The same step in the dark theme:

The Recording step in dark theme

Dark theme. The contact polarity colours are deliberately identical in both themes, because they are the safety-relevant part of the drawing.

Reviewing as you go

Below the entry area, everything inserted so far is shown two ways.

Four stacked charts sharing one time axis: session scales, amplitude, pulse width and frequency, with a series key

Four charts sharing one time axis: session scales, amplitude, pulse width and frequency.

The panels are aligned vertically, so a dip in a scale can be read against the amplitude that preceded it. They scroll horizontally, showing the most recent configurations by default, with zoom controls and drag handles to reorder the panels.

A table of every entry sits below them, grouped by block. Values that belong to the block (time, program, parameters) are printed once rather than repeated on every scale row, and a heavy rule marks each block boundary. Once scale targets are set, the rows of the best and second-best blocks are shaded in the same greens as the charts, and the shading moves as each block is inserted.

Scale targets sets what “better” means per scale (minimise, maximise, or closest to a value). Once set, the best- and second-best-scoring configurations are shaded green across all four charts. Until set, nothing is ranked; see Scale targets.

Scale targets

The scale targets dialog, one row per scale with a minimum, maximum and a target mode

Opened by Scale targets in step 4, on the Reports and datasets screen, or from the report sections dialog.

Says what “better” means for each scale, which is the input the ranking needs and the one thing only you can supply. Set all: Min / Max fills the column in one tap for a set of scales that all run the same way.

Each scale gets a mode: Min, Max, Custom (closest to a stated value, which reveals a Value field), or Ignore. Until targets are set, no configuration is ranked anywhere: see Scale targets for the definition of the aggregate index and What the reports do not say for its limits.

Exporting

Export offers a PDF or Word report, the raw TSV, or the whole session as a BIDS dataset. Paper size applies to both document formats and is remembered between exports.

The Export menu open, listing PDF and Word reports, the raw TSV and a BIDS dataset, with the paper-size submenu showing A4 selected

The Export menu, with the paper-size submenu open.

Choosing a report opens the report sections dialog first. See Reports for what each section contains.

Report sections

The report sections dialog, a checkbox and one-line description per section

Appears when you export a report, before the save dialog. Each report kind has its own list, and the dialog title says which one you are choosing for:

  • Session report sections: baseline, session scales figure, session data table, electrode configuration and programming summary.

  • Longitudinal report sections: clinical scales by visit, visits table, session scales by visit and block, combined session data table, electrode configuration, programming summary and source files. The session data table, the electrodes and the programming summary start unticked, because they are the sections that add pages; tick them to include them.

Each section has a one-line description of what it adds. Export is disabled while nothing is checked, because a report of a title page alone is not a document anyone wants. Scale targets… opens the dialog above without losing the selection, since the ranking those targets drive is what several of these sections show.

The session report remembers its selection for the next export. The longitudinal report opens with its defaults every time, so a section that adds pages, ticked once, is not carried into every later report.