HyPhy message board | |
http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl
HYPHY Package >> Feature Additions >> Final ";" in Save trees to file http://www.hyphy.org/cgi-bin/hyphy_forums/YaBB.pl?num=1129551320 Message started by avilella on Oct 17th, 2005 at 5:15am |
Title: Final ";" in Save trees to file Post by avilella on Oct 17th, 2005 at 5:15am
Dears,
I would like to suggest a minimal modification in the "Save trees to file" part of post_sns.bf: Just to add a ";" at the end of each tree, as some programs will choke when parsing these trees without the final ";" avb@magneto:~/9_opl/hyphy_latest/HYPHY_Source/TemplateBatchFiles$ diff -u post_sns.bf.ori post_sns.bf --- post_sns.bf.ori 2005-10-17 14:10:04.203712528 +0200 +++ post_sns.bf 2005-10-17 14:09:36.160975672 +0200 @@ -115,5 +115,5 @@ else { SetDialogPrompt ("Save trees to file:"); - fprintf (PROMPT_FOR_FILE, CLEAR_FILE, synTreeString, "\n", nonSynTreeString, "\n"); + fprintf (PROMPT_FOR_FILE, CLEAR_FILE, synTreeString, "\;\n", nonSynTreeString, "\;\n"); } Bests, Albert. |
Title: Re: Final ";" in Save trees to file Post by Sergei on Oct 17th, 2005 at 3:50pm
Dear Albert,
As always; thanks for your thoughtful suggestions. I have included the change in the file and it be rolled into the next update. Cheers, Sergei |
Title: Re: Final ";" in Save trees to file Post by avilella on Nov 7th, 2005 at 6:01am
Silly of me, The ";" at the end of the treestrings cannot be escaped,
so that it appears in the output file: --- /home/avb/9_opl/hyphy_latest/HYPHY_Source/TemplateBatchFiles/post_sns.bf.ori 2005-11-07 14:36:58.000000000 +0100 +++ /home/avb/9_opl/hyphy_latest/HYPHY_Source/TemplateBatchFiles/post_sns.bf 2005-11-07 14:56:59.000000000 +0100 @@ -117,5 +117,5 @@ else { SetDialogPrompt ("Save trees to file:"); - fprintf (PROMPT_FOR_FILE, CLEAR_FILE, synTreeString, "\;\n", nonSynTreeString, "\;\n"); + fprintf (PROMPT_FOR_FILE, CLEAR_FILE, synTreeString, ";\n", nonSynTreeString, ";\n"); } |
HyPhy message board » Powered by YaBB 2.5.2! YaBB Forum Software © 2000-2024. All Rights Reserved. |