<filename>Data/12.17.21_noecto_vt_sweep/simple_repeat.py
#a script to run several replicates of several treatments locally
# Assumes that symbulation-default and SymSettings.cfg are already in this folder
import sys

start_range = 10
end_range = 41
if(len(sys.argv) > 1):
    start_range = int(sys.argv[1])
    end_range = int(sys.argv[2])
else:
    print("Using default seeds " + str(start_range) + " " + str(end_range))

seeds = range(start_range, end_range)

vts = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]

import subprocess

def cmd(command):
    '''This wait causes all executions to run in sieries.
    For parralelization, remove .wait() and instead delay the
    R script calls unitl all neccesary data is created.'''
    return subprocess.Popen(command, shell=True).wait()

def silent_cmd(command):
    '''This wait causes all executions to run in sieries.
    For parralelization, remove .wait() and instead delay the
    R script calls unitl all neccesary data is created.'''
    return subprocess.Popen(command, shell=True, stdout=subprocess.PIPE).wait()

#needs executable ./symbulation

for a in seeds:
    for vt in vts:
        command_str = './symbulation_default -VERTICAL_TRANSMISSION '+str(vt)+' -SEED '+str(a)+' -FILE_NAME Seed'+str(a)+'_VT'+str(vt)
        settings_filename = 'Output_Seed'+str(a)+'_VT'+str(vt)+".data"
        print(command_str)
        cmd(command_str+" > "+settings_filename)

<filename>Data/12.17.21_noecto_vt_sweep/simple_repeat.py
#a script to run several replicates of several treatments locally
# Assumes that symbulation-default and SymSettings.cfg are already in this folder
import sys

start_range = 10
end_range = 41
if(len(sys.argv) > 1):
    start_range = int(sys.argv[1])
    end_range = int(sys.argv[2])
else:
    print("Using default seeds " + str(start_range) + " " + str(end_range))

seeds = range(start_range, end_range)

vts = [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0]

import subprocess

def cmd(command):
    '''This wait causes all executions to run in sieries.
    For parralelization, remove .wait() and instead delay the
    R script calls unitl all neccesary data is created.'''
    return subprocess.Popen(command, shell=True).wait()

def silent_cmd(command):
    '''This wait causes all executions to run in sieries.
    For parralelization, remove .wait() and instead delay the
    R script calls unitl all neccesary data is created.'''
    return subprocess.Popen(command, shell=True, stdout=subprocess.PIPE).wait()

#needs executable ./symbulation

for a in seeds:
    for vt in vts:
        command_str = './symbulation_default -VERTICAL_TRANSMISSION '+str(vt)+' -SEED '+str(a)+' -FILE_NAME Seed'+str(a)+'_VT'+str(vt)
        settings_filename = 'Output_Seed'+str(a)+'_VT'+str(vt)+".data"
        print(command_str)
        cmd(command_str+" > "+settings_filename)

#a script to run several replicates of several treatments locally # Assumes that symbulation-default and SymSettings.cfg are already in this folder This wait causes all executions to run in sieries.     For parralelization, remove .wait() and instead delay the     R script calls unitl all neccesary data is created. This wait causes all executions to run in sieries.     For parralelization, remove .wait() and instead delay the     R script calls unitl all neccesary data is created. #needs executable ./symbulation