Welcome, Guest. Please Login
YaBB - Yet another Bulletin Board
 
  HomeHelpSearchLogin  
 
Final ";" in Save trees to file (Read 2393 times)
avilella
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 35
Final ";" in Save trees to file
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.
Back to top
 
 
IP Logged
 
Sergei
YaBB Administrator
*****
Offline


Datamonkeys are forever...

Posts: 1658
UCSD
Gender: male
Re: Final ";" in Save trees to file
Reply #1 - 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
Back to top
 

Associate Professor
Division of Infectious Diseases
Division of Biomedical Informatics
School of Medicine
University of California San Diego
WWW WWW  
IP Logged
 
avilella
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 35
Re: Final ";" in Save trees to file
Reply #2 - 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");
}
Back to top
 
 
IP Logged