ReMoto

Quick guide · Version 4

From the scenario you pick to the plot you download.

The whole path through the simulator, in seven steps: run a ready-made scenario, read the results screen, change parameters in the editor, build your own simulation and take your work with you. It replaces the quick guide of the legacy site, written for the Java applet version.

Open the simulator Project site README

1Start

Open the simulator and pick a scenario

Nothing to install and no account to create: ReMoto runs in the browser. Open the public demo, or http://localhost:8081/simulator/ on your own machine after starting the server.

The page has two columns. On the left, My simulations at the top, with what you have already run, and the Scenarios below, in two tabs: Public, the 43 that ship with the simulator, and My scenarios, your own copies. The search box filters by name, id or description. The right column holds the simulation you have open.

Each scenario card shows the name, the simulated duration, the id and the first lines of the description — one click shows the rest, which says what that scenario simulates and where it came from. The buttons are Run, Edit, Copy and Export.

Three good ways in: Default – Soleus contraction, the default scenario of the legacy site; projectFR – H-reflex and M-wave curve, which shows the M wave and the H reflex in 50 ms of simulated time; and Full model, with every element switched on, to walk around the results screen.

The ReMoto home screen: My simulations and the scenario list on the left, the instructions panel on the right.
Figure 1The home screen. Simulations and scenarios on the left; the open simulation on the right — none yet, here.
2Run

Click Run and watch it go

The card's Run button opens the simulation in the right column and shows the progress live. It also appears under My simulations, with its state and run time.

The models are detailed, and therefore slow: one simulated second takes 17 to 30 seconds on a four-core machine, and the scenarios range from 50 ms to 30 s of simulated time — the card says which. On the public demo, a small machine shared by every visitor, simulations go into a round-robin queue; on your own machine there is no queue.

The × on the row cancels a running simulation or deletes a finished one. You can close the browser: the simulation keeps going on the server, and the row will be there when you come back.

Every simulation records the exact scenario, the random seed and the engine version. The same scenario with the same seed gives the same results, bit for bit, with any number of threads.

3Results

The results screen you already know

Once the simulation ends, the right column becomes the results screen of the legacy site: the same menus, names and axes. Choose what you want to see and click Plot.

The results screen: the Type, Muscle and Graphic menus, the EMG options and the soleus EMG plot, with the M wave and the H reflex.
Figure 2The soleus EMG in the H-reflex scenario: the M wave, just after the pulse, and the H reflex about 30 ms later.
Type
Biomechanical Elements (force, EMG, lengths, torque, motor units), Neural Elements (motoneurons, afferents, tracts and interneurons), Properties, Summary and the ready-made layouts, such as Spikes MNs, Forces and General.
Graphic
The plot itself: 37 biomechanical ones (from the twitch to the joint torque) and 18 per neuron (raster, instantaneous firing rate, interspike-interval histogram, soma and dendrite potentials, conductances, phase plane). The menus beside it choose the muscle, the nucleus and the neuron.
EMG
When the plot is the EMG, the options of the old screen appear: sampling, a 1st/2nd or 3rd/3rd order filter, cut-offs, noise and attenuation. With the default options it is the EMG the engine recorded; change any of them and it is rebuilt from the raw signal.
Analysis
Statistics of what is plotted (points, mean, variance, standard deviation, CV, minimum and maximum, with the mean ± SD lines) and the FFT, with the periodic-signal option and the choice of axes.
Advanced
Under Advanced Graphic Settings, up to eight subplots in one figure, overlay (Hold On), axis limits, title, labels, legend, colour, height and font.
Download
Download CSV gives the numbers behind the plot (the "file" option of the legacy site) and Download PNG the figure. Export (ZIP), at the top, takes the whole simulation: the manifest with the seed and the engine version, the configuration and every result in CSV. Configuration (JSON) shows the exact scenario that was run.
4Editor

Changing parameters: Edit opens your own copy

Public scenarios belong to everyone and are read-only. Edit on one of them creates a copy under My scenarios and opens the editor on it; Copy only makes the copy. On your own scenarios, Edit opens the editor directly.

The editor is the one from the legacy site: the same menu on the left, the same screens, labels, units and limits. Each screen saves on its own Save button; Run this scenario, at the top, goes back to the main page with the simulation already starting.

The scenario editor on the Descending Commands screen: the table of descending tracts, with axons, distribution and mean interval, and the screen menu on the left.
Figure 3The editor, on the Descending Commands screen. On the left, the menu with every screen of the legacy site.
Table 1The editor screens, by menu group.
Group Screens
— Scenario: name, description and the random seed
Simulation Duration and Time Step: how long to simulate, and the integration step
Structure Descending Commands, Neural Elements
Neural Parameters Synapses, Kinetic Properties, Synaptic Dynamics, Conductances, Motoneurons, Interneurons, Sensory Fibers
Proprioceptors Muscle Spindle, Golgi Tendon Organ
Biomechanical Biomechanical Elements (the joint and muscle models), Joint, Muscle Units, Musculotendon, Electromyogram, Miscellaneous
Stimulation Nerve Stimulation, Injected Current

Field labels stay in English in both languages, as in the original, so that the material written for it and the papers still apply. The limits are the old ones too: at most a thousand neurons per type in each nucleus, a minimum interspike interval, a minimum time step and the minimum refractory periods.

5Your own

Building your own, starting from a scenario

The shortest path is to copy the scenario closest to what you want and change it. The order below is the one of the old guide, brought up to today's screens.

  1. The nuclei and how many neurons

    Under Structure → Neural Elements, choose the muscles (SOL, MG, LG and TA) and how many motoneurons of each type (S, FR, FF), afferents and interneurons take part. Anything left at zero is not created and costs no time.

  2. What drives the system

    Under Descending Commands, switch the tracts on and choose the number of axons, the distribution (Poisson, gamma or Gaussian), the mean interval and the modulation. Under Stimulation, the pulse on the tibial or common peroneal nerve, or a current injected into chosen neurons.

  3. The feedback

    Afferents only fire if something drives them: the spindle and the Golgi tendon organ, under Proprioceptors, with the Hill muscle and a joint model that changes the length (Biomechanical Elements and Joint). With an isometric ankle and the default muscle, the spindle is not integrated.

  4. The synapses

    Under Neural Parameters, the conductance, reversal potential, delay and connectivity of each pathway, short-term depression or facilitation, and, if you want, a weight that falls with the distance between the cells.

  5. Duration, step and seed

    Under Simulation → Duration and Time Step, how long to simulate and with which step; under Scenario, the seed. Start with a short duration: wall-clock time grows with it and with the number of neurons.

  6. Run and look

    Save on every screen you change, then Run this scenario. If nothing happens where you expected it, check whether the element is active: almost everything starts switched off, and the features that came from the Fortran version only act when a scenario chooses them.

6Keep it

No login: keep your work and take it with you

There is no account and no database. Each browser gets a workspace of its own, identified by a 30-day cookie: the work survives closing the browser and server restarts, and is deleted after 30 days without use. No personal data is stored.

To keep it longer, or take it to another computer, use the export buttons:

One scenario
Export on the card downloads the scenario as JSON: the whole configuration, the duration, the step and the seed, in a text file that also runs on the command line.
All of yours
Export all, on the My scenarios tab, gives a .zip with one JSON per scenario; Import… beside it takes both formats back.
One simulation
Export (ZIP) takes the manifest, the configuration and the results in CSV. The Import… under My simulations brings that .zip back, checking the manifest against its hash.
7Command line

Outside the browser, with the same file

The JSON you export runs unchanged and with no server, writing every result to CSV. It is the way to go for long simulations, parameter sweeps and a cluster.

$ java -jar remoto-cli.jar run my-scenario.json \
    --duration-ms 500 --threads 4 -o results/

$ java -jar remoto-cli.jar sweep my-scenario.json \
    --protocol hm --range 5:40:1 -o results/hm-curve

The output folder gets the frozen scenario, a manifest with the seed and the engine version, and one CSV per result. sweep runs a batch protocol — in the example, the H-reflex and M-wave curve from 5 to 40 mA — and writes one row of measurements per simulation. There are also validate, which checks scenario files, and export-legacy, which converts configurations from the original database.

What this guide leaves out — build instructions, the REST API, the scenario format and installing on a server — is in the README and in the full documentation. The models are described in the papers.