Looking at your example, we could guess that the code could match a string of zeros, or simply "O" at the beginning, or Line numbers 1,5,9,13...etc.
Here's three solutions---one for each option:
Code:
sed '/0000000/s/O/T' filename > newfilename
sed 's/^O/T/' filename > newfilename
sed '1,+4s/^O/T/' filename > newfilename