TNT Script for Maximum Parsimony Analysis
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kuoi 9ed9f85b82 fix Wall warning 2 months ago
LICENSE Create LICENSE 1 year ago change con* to resample* due to win version bug 3 months ago change con* to resample* due to win version bug 3 months ago
tnt2winclada.cpp fix Wall warning 2 months ago

TNT Script used by Guoyi

The TNT script follows MIT and part of script is from belonging to Salvador Arias (Instituto Miguel Lillo, San Miguel de Tucumán, Argentina).


  • Place this script and your matrix tnt file filename under the folder that you call tnt or exe file is placed

  • Enter tnt

  • Enter command guoyi filename;


  • Estimate implied weighting K value.

  • Search trees via TBR Mult and Xmult.

  • Perform Strict consensus.

  • Calculate Relative Bremer support, jackknifing, and bootstrap.

  • Map apomorphic characters on the consensus tree.

  • Calculate TL, CI, and RI.


  • Results instructions are at the end of tnt.log.

  • trees.tre, resample.tre are trees with taxname.

  • trees_no.tre, resample_no.tre are trees without taxname.

  • nelsen can be replaced by majority.

  • xmult and mult replications and hold trees number can be adjusted.

  • 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.


~|~|\ |~|~  ~)  |    |o._ |~| _  _| _ 
 | | \| |   /_   \/\/ || ||_|(_|(_|(_|

MIT, Guoyi Zhang, 2023


Convert TNT output tree file without tags and taxname, e.g. winclada.tre produced by TNT script, to WinClada acceptable format tree.


Linux & Unix

g++ tnt2winclada.cpp -o tnt2winclada


clang++ -o tnt2winclada tnt2winclada.cpp


cl /EHsc tnt2winclada.cpp


tnt2winclada -i ${input_file} -o ${output_file}