def get_sequence_name_from(seq_name_and_family):
  """Get sequence name from concatenated sequence name and family string.

  Args:
    seq_name_and_family: string. Of the form `sequence_name`_`family_accession`,
      like OLF1_CHICK/41-290_PF00001.20. Output would be OLF1_CHICK/41-290.

  Returns:
    string. Sequence name.
  """
  return '_'.join(seq_name_and_family.split('_')[0:2])