GCaMP6s21 (link) was fused in-frame to synaptophysin22 (link) and ligated into the Cre-dependent pAAV-hSyn-DIO-WPRE backbone23 (link). A Cre-independent version of this expression plasmid was generated by treatment of the DIO vector with Cre recombinase (NEB) in vitro.