I'm trying to count the number of triads completed in a Y-Maze test (see image)
A complete triad is when a mouse moves from B > C > A, B > A > C, C > A > B etc. If the mouse goes B > A > B the triad in not complete.
My data is expressed just as a list of BABABCBAB etc.
Is there a way I can...