Hier staan scripts die gebruikt kunnen worden bij het college Allegro Rules


Script: allegro.py
Run het script zonder argumenten voor een lijst van opties
Gebruik, voorbeelden:

    ./allegro.py sample.fon sample.allegro

    ./allegro.py -f features-example.txt sample.fon sample.allegro

    ./allegro.py -o out1.txt -f features-example.txt -a '-N 2' -F '-a -x' -v 3 sample.fon sample.allegro
Of gebruik de GUI: allegroGUI.py

Voorbeeld voor het inlezen van het resultaat in R:

    a <- read.table("out.data", header=TRUE, sep="\t", quote="", check.names=FALSE)

    a[a[, 1] == "Adorf", ]
    a[a[, "LOCATION"] == "Adorf", ]


Script: allfiles.py
Run het script zonder argumenten voor een lijst van opties
Gebruik, voorbeelden:

    ./allfiles.py -min out.data > min.txt

    ./allfiles.py -min -mean -max out.data out2.data out3.data > results.txt

    ./allfiles.py -2 out*.data > results.txt

    ./allfiles.py -min -max -mean -median -sd -n -1 -2 -3 -4 out.data > results.txt
 NameLast modifiedSizeDescription

[UP]Parent Directory   -  
[TXT]sample.allegro 2006-01-17 18:47 79  
[TXT]min.txt 2006-01-18 16:28 1.0K 
[TXT]sample.fon 2006-01-17 19:45 1.4K 
[PY]allfiles.py 2006-01-18 16:28 2.7K 
[TXT]results.txt 2006-01-18 16:28 4.6K 
[PY]allegroGUI.py 2006-01-23 13:41 5.1K 
[PY]allegro.py 2006-01-18 13:08 5.6K 
[TXT]features-example.txt 2006-01-17 19:46 7.4K 

Apache Server at www.let.rug.nl Port 80