$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Following leg segmentation, tracking and data processing, FLLIT automatically generates raw data for the positions of the body and each leg claw, 20 gait parameters, 5 plots and a tracked video (Table 1).
Here, we demonstrate these analyses using a fly model of Spinocerebellar ataxia 3 (SCA3). The pan-neuronal driver Elav-GAL4 was used to drive either the full-length wildtype human SCA3 with 27 glutamines in the polyQ tract (UAS-SCA3-flQ27), or a full-length mutant human SCA3 with 84 glutamines in the polyQ tract (UAS-SCA3-flQ84)11. SCA3 is typified by an ataxic gait with body veering, erratic foot placement and short, lurching steps12,13 (Table 2). To characterize gait of mutant SCA3 flies and investigate whether they display a similar gait to that of human patients, we analyzed relevant gait parameters generated by FLLIT, namely: Number of body turns, footprint regularity, leg domain overlap and sizes, and leg stride lengths (Table 2).
We found that SCA3-Q84 flies exhibited more turns (Figure 4A,A’), erratic foot placement as exhibited by low footprint regularity (enlarged standard deviations of the AEP14) (Figure 4B), increased leg domain overlap (Figure 4C-D), enlarged leg domains in length and area (Figure 4E,F), and decreased stride length (Figure 4G).
FLLIT also generates a video showing the tracked fly and legs in the arena-centered and body-centered views, body trajectory and heading direction, and vertical and lateral displacements of each leg (Figure 5). The tracked videos allow side-by-side comparison of leg movements in different flies. Representative videos of Elav-GAL4>SCA3-flQ27 (Video 1) and Elav-GAL4>SCA3-flQ84 (Video 2) flies demonstrate that compared to Elav-GAL4>UAS-SCA3-flQ27 flies (Figure 5A), Elav-GAL4>UAS-SCA3-flQ84 flies (Figure 5B) exhibit irregular, intersecting leg domains of different sizes, indicative of a lurching, ataxic gait.

Figure 1. Setup of the recording station and arena. Recordings from the (A) front and (B) side views. (C) An example of an arena used for making fly recordings for FLLIT tracking. Please click here to view a larger version of this figure.

Figure 2: View of the active window during fly gait recording using a dual head camera, which allows simultaneous recording of two flies. Please click here to view a larger version of this figure.

Figure 3: Active FLLIT window showing the button panel and labelled legs after segmentation and tracking. Please click here to view a larger version of this figure.

Figure 4: Representative FLLIT-generated data for relevant gait parameters of flies expressing wildtype (SCA3-flQ27) vs. mutant (SCA3-flQ84) SCA3. (A) Number of turns in the body trajectory. (B) Mid-leg footprint regularity normalized to body length. (C-C’) Traversed leg domains of each leg. (D) Domain overlap between legs. (E) Mid-leg domain length normalized to body length. (F) Mid-leg domain area normalized to body length2. (G) Mid-leg stride length normalized to body length. Please click here to view a larger version of this figure.

Figure 5: Snapshot of representative FLLIT-generated videos. (A) Elav-GAL4>UAS-SCA3-flQ27 and (B) Elav-GAL4>UAS-SCA3-flQ84 flies. Please click here to view a larger version of this figure.

Video 1: Representative video of a fly expressing pan-neuronal wild-type human full-length SCA3 (Elav-GAL4>UAS-SCA3-flQ27). Please click here to view this video. (Right-click to download.)

Video 2: Representative video of a fly expressing pan-neuronal mutant human full-length SCA3 (Elav-GAL4>UAS-SCA3-flQ84). Please click here to view this video. (Right-click to download.)

Supplemental Figure 1: Configurations for VcXSrv. Please click here to view a larger version of this figure.

Supplemental Figure 2: Configuration for Xquartz. Please click here to view a larger version of this figure.

Supplemental Figure 3: Image labelled with the dimensions needed for calculating Field of view. Please click here to view a larger version of this figure.
| Category | Parameters | Description | File/Plot (if applicable) |
| Raw data | Body position | Positional coordinates of the body centroid in each frame | First two columns of CoM.csv |
| Body trajectory | Angle of rotation of the body axis in degrees (relative to the y-axis) | Third column of CoM.csv |
Arena-centred leg claw
positions | Positional coordinates of each leg claw in each frame based on arena coordinates | trajectory.csv |
Body-centred leg claw
positions | Positional coordinates of each leg claw in each frame
based on arena coordinates | norm_trajectory.csv |
| Body motion | Body length (mm) | Length of the sample animal estimated in each frame (anterior-most position on head to posterior-most
position on the wings) | bodylength.csv |
Instantaneous body velocity
(mm/s) | Instantaneous velocity of the body (centroid) in the sample animal | BodyVelocity.csv; BodyVelocity.pdf |
Turning points of the body
trajectory | To locate the turning points, the trajectory is reduced to a piecewise-linear curve using the Dougl asâASPeucker
algorithm, following which a turning event is identified as involving an angle > 50 deg between two neighbouring
linear segments constituting the simplified trajectory | BodyTrajectory.pdf |
| Individual stride parameters | Stride duration (ms) | The duration of a stride event | StrideParameters.csv |
| Stride period (ms) | The duration from one stride event to the next | |
| Stride displacement (mm) | Displacement of the leg claw during a stride event | |
| Stride path covered (mm) | Total path covered by the leg claw during a stride event | |
Anterior extreme position
(mm) | Landing position (relative to the body) of a leg claw at the end of a stride event | |
| Posterior extreme position (mm) | Take-off position (relative to the body) of a leg claw at the start of a stride event | |
| Stride amplitude (mm) | Displacement along the direction of motion for a stride event | |
| Stance linearity (mm) | Defined as the deviation of the stride path from a curve smoothed over (at 20ms intervals) the corresponding anterior
and posterior extreme positions of the stride | |
| Stride stretch (mm) | Distance of the leg claw position from the body centre in the middle of a stride event | |
| Leg motion | Leg speed (mm/s) | The instantaneous speed of each leg | LegSpeed.csv; Gait.pdf |
| Gait index | This measures the type of gait coordination exhibited by the (six-legged) sample animal during its motion. A gait
index of 1 corresponds to a tripod gait, _1 corresponds to a tetrapod gait while 0 constitutes an non-canonical gait.
In our implementation, the gait index is obtained by a moving average over a 120 ms window | GaitIndex.csv; GaitIndex.pdf |
| Movement percentage | Percentage of the time that a leg is in motion | LegParameters.csv |
| Mean stride period (ms) | Average duration from one stride event to the next | LegParameters.csv |
| Footprint regularity (mm) | Measured as the standard deviations of the posterior and | LegParameters.csv |
| anterior extreme positions of a leg | |
Leg trajectory domain area
(mm2) | The area of the minimal convex hull that contains the entire leg trajectory in the body-centred frame of reference | LegParameters.csv; LegDomain.pdf |
Length and width of the
leg trajectory domain (mm) | Obtained via the maximum projected distance of the claw positions onto the major (domain length) and minor
(domain width) principal axes | LegParameters.csv |
Leg domain intersection/overlap
(mm2) | The intersection/overlap between each possible | LegDomainOverlap.csv |
| Stance width (mm) | Average of the distance between the AEP and PEP of the left and middle legs | StanceWidth.csv |
Table 1: Gait parameters generated by FLLIT.
| Gait feature |
| Gait features of Spinocerebellar ataxia 3 (SCA3) | Veering | Erratic foot placement and leg crossing over | Lurching steps | Short strides |
| Measurement Parameter | Number of body turn events | Footprint regularity | Size of leg domains, degree of domain overlap | Stride length |
| FLLIT File | BodyTrajectory.pdf | LegParameters.csv | LegDomainOverlap.csv | StrideParameters.csv |
Table 2: Table showing hallmark SCA3 gait features in human patients with their corresponding FLLIT parameters and output files.