code: def prepare_bcbio_samples(sample):
      
      logger.info("Preparing %s files %s to merge into %s." % (sample['name'], sample['files'], sample['out_file']))
      if sample['fn'] == "fq_merge":
          out_file = fq_merge(sample['files'], sample['out_file'], sample['config'])
      elif sample['fn'] == "bam_merge":
          out_file = bam_merge(sample['files'], sample['out_file'], sample['config'])
      elif sample['fn'] == "query_gsm":
          out_file = query_gsm(sample['files'], sample['out_file'], sample['config'])
      elif sample['fn'] == "query_srr":
          out_file = query_srr(sample['files'], sample['out_file'], sample['config'])
      sample['out_file'] = out_file
      return [sample]
docs: Function that will use specific function to merge input files