def check_Rscript_BEDTools ():
    try:
        p = Popen(["bedtools","coverage","-h"],stdout=PIPE,stderr=PIPE)
    except OSError as (errno,detail):
        sys.stderr.write("'bedtools coverage' can not be accessed through the command line!\n")
        sys.stderr.write("OS gave me this error message: [Errno %d]: %s\n" % (errno,detail))
        sys.stderr.write("Please download BEDtools from <http://code.google.com/p/bedtools/>.\n")
        sys.exit(1)
    try:
        p = Popen(["Rscript","--version"],stdout=PIPE,stderr=PIPE)
    except OSError as (errno,detail):
        sys.stderr.write("'Rscript' can not be accessed through the command line!\n")
        sys.stderr.write((errno,detail) % "OS gave me this error message: [Errno %d]: %s\n")
        sys.stderr.write("Please make sure you installed R(>2.9).\n")
        sys.exit(1)

# ------------------------------------
# Classes
# ------------------------------------

# ------------------------------------
# Main function
# ------------------------------------
dataset/ETHPy150Open taoliu/taolib/Scripts/bed_correlation.py/check_Rscript_BEDTools/swapped operands of `%`