Gallery#
Every plot of the package. Hover over a figure to see what it shows, and
click it to see the code that draws it (the names in the code link to their
documentation). The figures are drawn from the sample data of the
repository (sample_data: four mice of one project, their first three
months of training) by the current code each time this documentation is
built.
The inputs of the examples#
Every example draws from some of these inputs. With your data:
import pandas as pd
from lecilab_behavior_analysis.io.loading import load_project_logs, load_project_trials
# the trials of several mice, prepared for analysis (and their performance through trials)
cohort = load_project_trials("COT_cannula_data", ["NUO001", "NUO002", "NUO003", "NUO009"])
# the trials of one mouse, and of one of its days
trials = cohort[cohort["subject"] == "NUO003"]
day = trials[trials["year_month_day"] == "2025-11-08"]
# the events and the sessions summaries of the project's setups (with the settings of each session)
events, summary, _ = load_project_logs("COT_cannula_data")
To draw them from the sample data of the repository, add
root="sample_data" to both functions.
The tutorial goes through these step by step.




























