text: """Dataset with 'Mopeia mammarenavirus' sequences.
  
  A dataset with 8 'Mopeia mammarenavirus' sequences. The virus is
  segmented and has 2 segments. Based on their strain and/or isolate,
  these sequences were able to be grouped into 5 genomes. Many genomes
  may have fewer than 2 segments.
  
  THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
  """
  
  import sys
  
  from catch.datasets import GenomesDatasetMultiChrom
  
  
  def seq_header_to_chr(header):
      import re
      c = re.compile(r'\[segment (L|S)\]')
      m = c.search(header)
      if not m:
          raise Exception("Unknown or invalid segment in header %s" % header)
      seg = m.group(1)
      return "segment_" + seg
  
  def seq_header_to_genome(header):
      import re
      c = re.compile(r'\[genome (.+)\]')
      m = c.search(header)
      if not m:
          raise Exception("Unknown genome in header %s" % header)
      return m.group(1)
  
  
  chrs = ["segment_" + seg for seg in ['L', 'S']]
  ds = GenomesDatasetMultiChrom(__name__, __file__, __spec__,
                                chrs, seq_header_to_chr,
                                seq_header_to_genome=seq_header_to_genome)
  ds.add_fasta_path("data/mopeia_mammarenavirus.fasta.gz", relative=True)
  sys.modules[__name__] = ds
  