abcd4dBackground: The Advanced Bolus Calculator for Diabetes (ABC4D) is an insulin bolus dose decision support system based on case-based reasoning (CBR).abc4d is an R package to analyze whole-brain microscopy data and over time. The goal of this package is to offer functions for quality control, preprocessing and analysis of the data.