From 97cdc9a302cf045745e937d9acb18e906df5aa42 Mon Sep 17 00:00:00 2001 From: Kuoi Date: Sun, 26 Feb 2023 03:32:18 +0800 Subject: [PATCH] polish using macro --- README | 15 ++++++++------- guoyi.run | 33 +++++++++++++++++++++++++++++++++ setk_tnt.run | 4 ---- tnt.run | 32 -------------------------------- 4 files changed, 41 insertions(+), 43 deletions(-) create mode 100644 guoyi.run delete mode 100644 setk_tnt.run delete mode 100644 tnt.run diff --git a/README b/README index fefda04..3328a1f 100644 --- a/README +++ b/README @@ -2,9 +2,15 @@ This scripts are followed MIT except for setk.run which belongs to Salvador Arias(Instituto Miguel Lillo, San Miguel de Tucumán, Argentina). -## tnt.run +## Usage -- `file.tnt` must be changed to your own file; +- OS: Arch Linux; + +- `tnt run guoyi.run file.tnt`, `file.tnt` is your data; + +- Type `;` and enter; + +## Options - `trees.tre`, `bt.tre` are trees with taxaname; @@ -14,8 +20,3 @@ This scripts are followed MIT except for setk.run which belongs to Salvador Aria - `boot` can be replaced by `jack`; -## setk_tnt.run - -- `file.tnt` must be changed to your own file; - -- You can find the recommended k from `setk.log` and then change in `piwe=` `tnt.run`; diff --git a/guoyi.run b/guoyi.run new file mode 100644 index 0000000..ec28e63 --- /dev/null +++ b/guoyi.run @@ -0,0 +1,33 @@ +log tnt.log; +macro=; +taxname=; +mxram 10240; +nstates 32; +nstates NOGAPS; + +procedure %1; +setk.run; + +procedure %1; +hold 1000; +xpiwe(*; +mult=replic 1000 tbr hold 1; +xpiwe&;piwe&; +export= trees.tre; +taxname-; +export= trees_no.tre; +taxname=; + +bbreak=tbr; +majority *; + +ttags=; +resample boot replications 1000; +ttags & bt.svg thickness 7 italics fontsize 15; +export < bt.tre; +taxname-; +export - bt_no.tre; + +length *; +stats.run; +quit ; diff --git a/setk_tnt.run b/setk_tnt.run deleted file mode 100644 index 5efc1bb..0000000 --- a/setk_tnt.run +++ /dev/null @@ -1,4 +0,0 @@ -log setk.log; -p file.tnt; -setk.run; -quit; diff --git a/tnt.run b/tnt.run deleted file mode 100644 index 2bf9e0d..0000000 --- a/tnt.run +++ /dev/null @@ -1,32 +0,0 @@ -mxram 10240 ; -nstates 32 ; -nstates NOGAPS ; - -piwe=12; - -procedure file.tnt ; -log tnt.log ; -taxname= ; - -hold 100000 ; -xpiwe(*; mult=replic 1000 tbr hold 10; -xpiwe&; piwe&; -export= trees.tre ; -taxname- ; -export= trees_no.tre ; -taxname= ; - -bbreak=tbr ; -majority * ; - -ttags= ; -resample boot replications 1000; -ttags & bt.svg thickness 7 italics fontsize 15; -export < bt.tre ; -taxname- ; -export - bt_no.tre; - -length * ; -stats.run; - -quit ;