def isPaired(filename):

    if BamTools.isPaired(filename):
        return "T"
    else:
        return "F"
return "T" if bamfile contains paired end reads.
dataset/ETHPy150Open CGATOxford/cgat/scripts/runMEDIPS.py/isPaired