def buildAnnotatorAnnotations( tmpdir, outfile,
                               annotations=None,
                               bedfiles = None,
                               gofile = None):

    tmpannotations = os.path.join( tmpdir, "annotations" )
    to_cluster = True
    job_options = "-l mem_free=4000M"
    
    if annotations == "architecture":
        statement = '''
         cat %(promotors)s %(annotation)s |\
         python %(scriptsdir)s/gff2annotator.py \
         	--section=annotations-gff \
         	--log=%(outfile)s.log \
         > %(tmpannotations)s
        '''
    elif annotations=="go":
        statement = '''
        cat %(annotator_geneterritories)s |\
        python %(scriptsdir)s/gff2annotator.py \
        --section=annotations-go \
        --input-filename-map=<(cut -f 2,4 < %(gofile)s) \
        --log=%(outfile)s.log \
        > %(tmpannotations)s
        '''
    elif bedfiles:
        bedfiles = " ".join(bedfiles)
        statement = '''
        cat %(bedfiles)s |\
        python %(scriptsdir)s/bed2annotator.py \
        --max-length=0 \
        --merge \
        --section=annotations \
        --log=%(outfile)s.log \
        > %(tmpannotations)s
        '''
    else:
        raise P.PipelineError("unknown annotations '%s'" % workspace )
    
    P.run()

    return tmpannotations

############################################################
############################################################
############################################################
##
############################################################
Returns a :class:`Node` instance at ``path`` (relative to the current site) or ``None``.
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_vitaminD_annotator.py/buildAnnotatorAnnotations--crossover with--dataset/ETHPy150Open ithinksw/philo/philo/middleware.py/get_node