def getRGs(bam):
    RG = []
    if 'RG' in bam.header:
        for headRG in bam.header['RG']:
            RG.append(headRG['ID'])
    return RG
return list of RG IDs
dataset/ETHPy150Open adamewing/bamsurgeon/bamsurgeon/replacereads.py/getRGs