code: def trim_sample(data):
      
      data = utils.to_single_data(data)
      trim_reads = dd.get_trim_reads(data)
      # this block is to maintain legacy configuration files
      if not trim_reads:
          logger.info("Skipping trimming of %s." % dd.get_sample_name(data))
      else:
          if "skewer" in dd.get_tools_on(data) or trim_reads == "skewer":
              trim_adapters = skewer.trim_adapters
          else:
              trim_adapters = trim.trim_adapters
          out_files = trim_adapters(data)
          data["files"] = out_files
      return [[data]]
docs: Trim from a sample with the provided trimming method.
      Support methods: read_through.