code: def _prepare_sample(data, run_folder):
      
      want = set(["description", "files", "genome_build", "name", "analysis", "upload", "algorithm"])
      out = {}
      for k, v in data.items():
          if k in want:
              out[k] = _relative_paths(v, run_folder)
      if "algorithm" not in out:
          analysis, algorithm = _select_default_algorithm(out.get("analysis"))
          out["algorithm"] = algorithm
          out["analysis"] = analysis
      description = "%s-%s" % (out["name"], clean_name(out["description"]))
      out["name"] = [out["name"], description]
      out["description"] = description
      return out
docs: Extract passed keywords from input LIMS information.