code: def parse_metrics(self, f):
          
          headers = None
          for l in f['f'].splitlines():
              s = l.strip().split("\t")
              if headers is None:
                  headers = s
              else:
                  s_name = s[ headers.index('Sample') ]
                  data = dict()
                  for idx, h in enumerate(headers):
                      try:
                          data[h] = float(s[idx])
                      except ValueError:
                          data[h] = s[idx]
                  self.rna_seqc_metrics[s_name] = data
docs: Parse the metrics.tsv file from RNA-SeQC