@follows( buildGeneRegions )
@files( [ ("%s.bed" % x, (x,y) % "%s-%s.annodist" ) \
              for x,y in itertools.product( TRACKS_ANNOTATOR, (TARGET_TSS, "intergenic", "intronic", "genic")) ] )
def makeAnnotatorDistance( infile, outfile):
    '''check statistical association between intervals and transcription
    start sites.'''

    track,workspace = outfile[:-len(".annodist")].split("-")

    if workspace == "intronic":
        builder = "gtf-intronic"
        workspace = TARGET_GENESET
    elif workspace == "genic":
        builder = "gtf-genic"
        workspace = TARGET_GENESET
    elif workspace == "intergenic":
        builder = "gtf-intergenic"
        workspace = TARGET_GENESET
    else:
        builder = "gtf-intergenic"

    PAnnotator.makeAnnotatorDistance( infile, outfile, builder, workspace, 
                                      workspace_label = "direction" )
dataset/ETHPy150Open CGATOxford/cgat/obsolete/pipeline_vitaminD.py/makeAnnotatorDistance/swapped operands of `%`