#NEWLINE# def getRGs( bam ) : #NEWLINE# #INDENT# 'return list of RG IDs' #NEWLINE# RG = [ ] #NEWLINE# if ( 'RG' in bam . header ) : #NEWLINE# #INDENT# for headRG in bam . header [ 'RG' ] : #NEWLINE# #INDENT# RG . append ( headRG [ 'ID' ] ) #NEWLINE# #UNINDENT# #UNINDENT# return RG