modify toCodonAlignment to be a classmethod