Quantifying barcodes of dendritic spines using entropy-based metrics