#!/bin/sh

# state + network names + additional optional params:
runnabeeco() {
    out="$1" # name of output file (.txt is added automatically)
    g1="$2" # group names
    g2="$3"
    n1="$4" # ntw/sigs basename
    n2="$5"
    shift 5
    
    # Output only results txt, do not save state
    echo "./nabeeco --save $out --no-save --groups $g1 $g2 --ntw data/$n1.ntw --ntw data/$n2.ntw --grsig data/$n1.sigs $g1 --grsig data/$n2.sigs $g2 $@"
    
    # Create + save a state file for resuming calculations at a later time. Resume $out if file exists, create a new state otherwise
    #./nabeeco --resume "$out" --create --groups $g1 $g2 --ntw data/$n1.ntw --ntw data/$n2.ntw --grsig data/$n1.sigs $g1 --grsig data/$n2.sigs $g2 $@
}

# Note: Start ./nabeeco with no parameters for a short description of the command line params

runnabeeco example_out mCMV EBV mCMV EBV --pop 200 --maxsame 300 --no-prematch --no-workfiles --undirected

