Automated labeling in the lab