def makeAnnotatorGO( infile, outfile, gofile, workspace ):

    to_cluster = True
    # require 4Gb of free memory
    job_options = "-l mem_free=4000M"

    tmpdir = tempfile.mkdtemp( dir = os.getcwd() )

    annotations = buildAnnotatorAnnotations( tmpdir, 
                                             outfile, 
                                             annotations="go", 
                                             gofile = gofile )

    # take only those promotors with GO categories for workspace
    workspaces, synonyms = buildAnnotatorWorkSpace(
        tmpdir, outfile,
        workspaces = ("mappable", workspace),
        gc_control=True )
    
    segments = buildAnnotatorSegments( tmpdir, infile, outfile )

    runAnnotator( tmpdir, outfile, annotations, segments, workspaces, synonyms )

############################################################
############################################################
############################################################
##
############################################################
Last status in session.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_vitaminD_annotator.py/makeAnnotatorGO--crossover with--dataset/ETHPy150Open hgrecco/pyvisa/pyvisa/highlevel.py/VisaLibraryBase.get_last_status_in_session