TNT_Script/README.md

79 lines
1.6 KiB
Markdown
Raw Permalink Normal View History

2023-02-26 02:42:56 +08:00
# TNT Script used by Guoyi
The TNT script follows MIT and part of script is from setk.run belonging to Salvador Arias (Instituto Miguel Lillo, San Miguel de Tucumán, Argentina).
2023-02-26 02:42:56 +08:00
2023-02-26 03:32:18 +08:00
## Usage
2023-02-26 02:42:56 +08:00
2023-02-27 01:42:50 +08:00
- Place this script and your matrix tnt file `filename` under the folder that you call `tnt` or `exe` file is placed
2023-02-26 03:45:29 +08:00
2023-02-27 01:24:22 +08:00
- Enter `tnt`
2023-02-26 03:32:18 +08:00
2023-02-27 01:24:22 +08:00
- Enter command `guoyi filename;`
2023-02-26 03:32:18 +08:00
2023-02-27 01:24:22 +08:00
## Functions
2023-02-26 03:32:18 +08:00
2023-02-27 01:45:00 +08:00
- Estimate implied weighting K value.
2023-02-26 03:45:29 +08:00
2023-02-27 01:24:22 +08:00
- Search trees via TBR Mult and Xmult.
2023-02-26 03:45:29 +08:00
2023-02-27 01:24:22 +08:00
- Perform Strict consensus.
- Calculate Relative Bremer support, jackknifing, and bootstrap.
- Map apomorphic characters on the consensus tree.
2023-02-27 01:24:22 +08:00
- Calculate TL, CI, and RI.
2023-02-26 03:45:29 +08:00
2023-02-26 03:32:18 +08:00
## Options
2023-02-26 02:42:56 +08:00
2023-02-27 01:24:22 +08:00
- Results instructions are at the end of `tnt.log`.
- `trees.tre`, `con.tre` are trees with taxname.
2023-02-27 01:37:48 +08:00
- `trees_no.tre`, `con_no.tre` are trees without taxname.
2023-02-26 02:42:56 +08:00
2023-02-27 01:24:22 +08:00
- `nelsen` can be replaced by `majority`.
2023-02-26 02:42:56 +08:00
2023-02-27 01:24:22 +08:00
- `xmult` and `mult` replications and hold trees number can be adjusted.
2023-02-26 02:42:56 +08:00
- `winclada.tre` can be transferred to the acceptable format for WinClada by tnt2winclada and the output file can be put into Winclada with your tnt matrix file `filename` for mapping apomorphic characters and homoplasy.
# TNT2WinClada
```
~|~|\ |~|~ ~) | |o._ |~| _ _| _
| | \| | /_ \/\/ || ||_|(_|(_|(_|
MIT, Guoyi Zhang, 2023
```
## Function
Convert TNT output tree file without tags and taxname, e.g. `winclada.tre` produced by TNT script, to WinClada acceptable format tree.
## Compile
### Linux & Unix
```
g++ tnt2winclada.cpp -o tnt2winclada
```
or
```
clang++ -o tnt2winclada tnt2winclada.cpp
```
### Windows
```
cl /EHsc tnt2winclada.cpp
```
## Usage
```
tnt2winclada -i ${input_file} -o ${output_file}
```