Data analysis codes for capture data