Beispiel #1
0
def model5D_Model_B(morseset=0,specfile="networks/5D_Model_B.txt",paramfile="5D_Model_B_FCParams.txt",resultsfile='results_5D_B.txt',findallmatches=1):
    def setPattern():
        f=open('patterns.txt','w')
        for s1 in permutations(['Y1 max','Y2 max','Z max']):
            patternstr1='X max, ' + ', '.join(s1) + ', Y3 max, X min, '
            for s2 in permutations(['Y1 min','Y2 min','Z min']):
                patternstr2=patternstr1 + ', '.join(s2) + ', Y3 min, X max \n'
                f.write(patternstr2)
        f.close()
    setPattern()
    useDSGRN.patternSearch(morseset,specfile,paramfile,resultsfile,findallmatches=findallmatches)
Beispiel #2
0
def patternSearch(morseset=0,
                  specfile="networks/5D_Malaria_20hr.txt",
                  paramfile="5D_Malaria_2015_FCParams_MorseGraph565.txt",
                  resultsfile="results_5Dmalaria_20hr_morsegraph565.txt",
                  findallmatches=0,
                  printparam=1):
    setPattern()
    useDSGRN.patternSearch(morseset,
                           specfile,
                           paramfile,
                           resultsfile,
                           printparam=printparam,
                           findallmatches=findallmatches)
Beispiel #3
0
def model5D_Model_B(morseset=0,
                    specfile="networks/5D_Model_B.txt",
                    paramfile="5D_Model_B_FCParams.txt",
                    resultsfile='results_5D_B.txt',
                    findallmatches=1):
    def setPattern():
        f = open('patterns.txt', 'w')
        for s1 in permutations(['Y1 max', 'Y2 max', 'Z max']):
            patternstr1 = 'X max, ' + ', '.join(s1) + ', Y3 max, X min, '
            for s2 in permutations(['Y1 min', 'Y2 min', 'Z min']):
                patternstr2 = patternstr1 + ', '.join(
                    s2) + ', Y3 min, X max \n'
                f.write(patternstr2)
        f.close()

    setPattern()
    useDSGRN.patternSearch(morseset,
                           specfile,
                           paramfile,
                           resultsfile,
                           findallmatches=findallmatches)
def patternSearch(morseset=0,specfile="/home/bcummins/DSGRN/networks/5D_2015_09_11.txt",paramfile="/share/data/bcummins/5D_2015_09_11_FCParams_MorseGraph565.txt",resultsfile="/share/data/bcummins/results_5Dmalaria_20hr_morsegraph565.txt",findallmatches=0,printparam=1):
    setPattern()
    useDSGRN.patternSearch(morseset,specfile,paramfile,resultsfile,printparam=printparam,findallmatches=findallmatches)
def patternSearch(morseset=0,specfile="networks/5D_Malaria_20hr.txt",paramfile="5D_Malaria_2015_FCParams_MorseGraph565.txt",resultsfile="results_5Dmalaria_20hr_morsegraph565.txt",findallmatches=0,printparam=1):
    setPattern()
    useDSGRN.patternSearch(morseset,specfile,paramfile,resultsfile,printparam=printparam,findallmatches=findallmatches)