add a script to compute a transition matrix using the new input/output format scheme