def get_family_from(hmm_filepath):
  """Get family name from the name of an individual family hmm filename.

  Args:
    hmm_filepath: string. Of the form '~/family_name'.hmm, like
      hmm_files/PF00001.21.hmm.

  Returns:
    string. Family name.
  """
  hmm_filename = hmm_filepath.split('/')[-1]
  return '.'.join(hmm_filename.split('.')[0:2])