getTrans function

Generic function to translate coding sequences into proteins