function Obs = convertGenomeToIntegers(genome)
% convertGenomeToIntegers this function returns an integer sequence
% corresponding to the genome sequence. For e.g. for the sequence 'actg' it
% returns '0132'

T = size(genome,2);
Obs = zeros(1,T);

for i = 1:T
    if genome(i) == 'a' || genome(i) == 'A'
        Obs(i) = 1;
    elseif genome(i) == 'c' || genome(i) == 'C'
        Obs(i) = 2;
    elseif genome(i) == 'g' || genome(i) == 'G'
        Obs(i) = 3;
    elseif genome(i) == 't' || genome(i) == 'T'
        Obs(i) = 4;
    end
end

end
