Removed #row.names(transition)=transition[,1] from function .getSingleTransition