code: def filterCellBarcode(self, cell):
          '''Filter out cell barcodes not in the whitelist, with
          optional cell barcode error correction'''
  
          if self.cell_blacklist and cell in self.cell_blacklist:
              self.read_counts['Cell barcode in blacklist'] += 1
              return None
  
          if cell not in self.cell_whitelist:
              if self.false_to_true_map:
                  if cell in self.false_to_true_map:
                      cell = self.false_to_true_map[cell]
                      self.read_counts['False cell barcode. Error-corrected'] += 1
                  else:
                      self.read_counts['Filtered cell barcode. Not correctable'] += 1
                      return None
              else:
                  self.read_counts['Filtered cell barcode'] += 1
                  return None
  
          if self.cell_blacklist and cell in self.cell_blacklist:
              self.read_counts['Cell barcode corrected to barcode blacklist'] += 1
              return None
  
          return celf filterCellBarcode(self, cell):
          '''Filter out cell barcodes not in the whitelist, with
          optional cell barcode error correction'''
  
          if self.cell_blacklist and cell in self.cell_blacklist:
              self.read_counts['Cell barcode in blacklist'] += 1
              return None
  
          if cell not in self.cell_whitelist:
              if self.false_to_true_map:
                  if cell in self.false_to_true_map:
                      cell = self.false_to_true_map[cell]
                      self.read_counts['False cell barcode. Error-corrected'] += 1
                  else:
                      self.read_counts['Filtered cell barcode. Not correctable'] += 1
                      return None
              else:
                  self.read_counts['Filtered cell barcode'] += 1
                  return None
  
          if self.cell_blacklist and cell in self.cell_blacklist:
              self.read_counts['Cell barcode corrected to barcode blacklist'] += 1
              return None
  
          return cell
docs: Filter out cell barcodes not in the whitelist, with
          optional cell barcode error correction