def _get_fragments_phase(frags):
 return [((3 - (x % 3)) % 3) for x in _get_fragments_coord(frags)]

def _get_fragments_phase ( frags ) : return [ ( ( 3 - ( x % 3 ) ) % 3 ) for x in _get_fragments_coord ( frags ) ]
returns the phases of the given list of 3-letter amino acid fragments .