docs: def detect_alignment_annotations(queryalignment, tags=False):
      """
      detects the annotations present in a SAM file, inspecting either the
      tags or the query names and returns a set of annotations present
      """
      annotations = set()
      for k, v in BARCODEINFO.items():
          if tags:
              if queryalignment.has_tag(v.bamtag):
                  annotations.add(k)
          else:
              if v.readprefix in queryalignment.qname:
                  annotations.add(k)
      return annotations