fast_io can read fasta file and convert bases to {0,1,2,3}.