Helper functions from the Deisseroth lab at Stanford University