code: def get_fraglength_dict(fastafiles):
      
      fraglength_dict = {}
      for filename in fastafiles:
          qname = os.path.split(filename)[-1].split("-fragments")[0]
          fraglength_dict[qname] = get_fragment_lengths(filename)
      return fraglength_dict
docs: Returns dictionary of sequence fragment lengths, keyed by query name.
  
      - fastafiles - list of FASTA input whole sequence files
  
      Loops over input files and, for each, produces a dictionary with fragment
      lengths, keyed by sequence ID. These are returned as a dictionary with
      the keys being query IDs derived from filenames.