Skip to article content

Executable science: Research Software Engineering Practices for Replicating Neuroscience Findings

Back to Article
Tables and Figures (Notebook)
Download Notebook

Tables and Figures (Notebook)

from pathlib import Path
from encoders.tables import gt_regression_params, gt_software_practices
from encoders.plot import plot_figure1
from encoders.utils import load_config
from matplotlib import pyplot as plt

Tables

The cells below render the imported tables.

gt_regression_params
Loading...
gt_software_practices
Loading...

Figures

Below we use encoders.plots.plot_figure1 to reproduce plots that were shown in Figure 1

Figure 1

%matplotlib agg
RUNS_DIR = load_config()["RUNS_DIR"]
figs = plot_figure1(
    reproduction_dir=Path(RUNS_DIR, "reproduction"),
    replication_ridgeCV_dir=Path(RUNS_DIR, "replication_ridgeCV"),
    save_figures=False,
    save_path=None,
)
Loading...

Reproduction (Panel B)

figs[0] # render first figure
<Figure size 600x400 with 1 Axes>
figs[2] # render the brain plot
<Figure size 400x400 with 1 Axes>

Replication (Panel C)

figs[1]
<Figure size 600x400 with 1 Axes>
figs[3]
<Figure size 400x400 with 1 Axes>
Executable science: Research Software Engineering Practices for Replicating Neuroscience Findings
Instructions