function n = baseToNum(b) switch b case 'A' n=1; case 'C' n=2; case 'G' n=3; case 'T' n=4; otherwise n=0; end