You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support Exporting Protein, Binary and Morphological Data to MrBayes (#264)
* Protein Model
* Morphological Models Support
* Cleanup
Move Model Specific Functions to each model class
Move other functions from phylotree and phylosupertree to phyloanalysis
* Cleanup Imports
* Binary Model Support
* Misc Cleanup
Misc Cleanup
* Output Files Readability, Default Warning & Help Message
* Fix Edge Case: Importing Values < 0.01 into MrBayes
* Fix Edge Case: Extra Characters in Charset
* Fix +G+I or +R Inputs
* Fix Issues with Binary Model
* Fix Issues with Morphology Model
<<"[This MrBayes Block Declaration provides the retrieved values from the IQTree Run.]" << endl
2614
+
<< "[Note that MrBayes does not support a large collection of models, so defaults of 'nst=6' for DNA and 'wag' for Protein will be used if a model that does not exist in MrBayes is selected.]" << endl
2615
+
<< "[Furthermore, the Model Parameter '+R' will be replaced by '+G'.]" << endl
2616
+
<< "[This should be used as a Template Only.]" << endl << endl;
2617
+
2618
+
// Begin File, Print Charsets
2619
+
out << "begin mrbayes;" << endl;
2620
+
} catch (ios::failure &) {
2621
+
outError(ERR_WRITE_OUTPUT, filename);
2622
+
}
2623
+
2624
+
if (!iqtree->isSuperTree()) {
2625
+
// Set Outgroup (if available)
2626
+
if (!iqtree->rooted) out << " outgroup " << iqtree->root->name << ";" << endl << endl;
2627
+
2628
+
out << " [Using Model '" << iqtree->getModelName() << "']" << endl;
Copy file name to clipboardExpand all lines: model/modelbin.h
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -55,6 +55,18 @@ class ModelBIN : public ModelMarkov
55
55
*/
56
56
virtualvoidstartCheckpoint();
57
57
58
+
/**
59
+
* Print the model information in a format that can be accepted by MrBayes, using lset and prset.<br>
60
+
* By default, it simply prints a warning to the log and to the stream, stating that this model is not supported by MrBayes.
61
+
* @param rate the rate information
62
+
* @param out the ofstream to print the result to
63
+
* @param partition the partition to apply lset and prset to
64
+
* @param charset the current partition's charset. Useful for getting information from the checkpoint file
65
+
* @param isSuperTree whether the tree is a super tree. Useful for retrieving information from the checkpoint file, which has different locations for PhyloTree and PhyloSuperTree
66
+
* @param inclParams whether to include IQTree optimized parameters for the model
* Get the Model DNA 'code', in form 'abcdef', used with ModelDNA model
119
-
* Returns empty string by default (this is not a dna specific model)
118
+
* Print the model information in a format that can be accepted by MrBayes, using lset and prset.<br>
119
+
* By default, it simply prints a warning to the log and to the stream, stating that this model is not supported by MrBayes.
120
+
* @param rate the rate information
121
+
* @param out the ofstream to print the result to
122
+
* @param partition the partition to apply lset and prset to
123
+
* @param charset the current partition's charset. Useful for getting information from the checkpoint file
124
+
* @param isSuperTree whether the tree is a super tree. Useful for retrieving information from the checkpoint file, which has different locations for PhyloTree and PhyloSuperTree
125
+
* @param inclParams whether to include IQTree optimized parameters for the model
* Print the model information in a format that can be accepted by MrBayes, using lset and prset.<br>
84
+
* By default, it simply prints a warning to the log and to the stream, stating that this model is not supported by MrBayes.
85
+
* @param rate the rate information
86
+
* @param out the ofstream to print the result to
87
+
* @param partition the partition to apply lset and prset to
88
+
* @param charset the current partition's charset. Useful for getting information from the checkpoint file
89
+
* @param isSuperTree whether the tree is a super tree. Useful for retrieving information from the checkpoint file, which has different locations for PhyloTree and PhyloSuperTree
90
+
* @param inclParams whether to include IQTree optimized parameters for the model
0 commit comments