code: def header(self):
          
          
          cmd = [self.__samtools, 'view', '-H', self.__bam]
  
          stdout = subprocess.Popen(cmd, stdout=subprocess.PIPE).stdout
  
          for l in stdout:
              yield l.decode('utf-8').strip()
  
          stdout.close()
docs: Return the BAM/SAM header
          
          Returns
          -------
          generator
              Each line of the header