code: def _seqcluster_stats(data, out_dir):
      
      name = dd.get_sample_name(data)
      fn = data.get("seqcluster", {}).get("stat_file", None)
      if not fn:
          return None
      out_file = os.path.join(out_dir, "%s.txt" % name)
      df = pd.read_csv(fn, sep="\t", names = ["reads", "sample", "type"])
      df_sample = df[df["sample"] == name]
      df_sample.to_csv(out_file, sep="\t")
      return out_file
docs: Parse seqcluster output