That's perfect.
To push the envelope further, within r1,r2,r3,r4 can you calcutate col percent by sample and reading. For r1 and r2 the output would look like:
r1 434 837
5 0 25
6 25 0
7 75 25
8 0 25
9 0 25
r2 434 837
5 0 25
6 50 0
7 25 25
8 25 25
9 0 25