-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Errors with generating tree with ControlFileGenerator #62
Comments
Sorry for the delayed response. you're supposed to name the ancestral nodes in the tree (these are the ancestral populations in your phylogeny), and you also have to have a root. Your Newick tree had a 3-way split at the root. This version works: This version assumes that Antarctic and MarionIsland are not sister populations. |
Thank you for your reply! I don't want to open a new thread for the following, and I believe I have fixed them myself, but 2 more issues with using a control file generated by ControlFileGenerator. When I used the control file, it gave this error: .rror: value of const-rate should be CONST, FIXED, or VAR, got CONST In the control file these 2 lines it doesn't like are as below:
So, probably an issue regarding an empty character more or a newline character less or the order of the lines, I couldn't get to the bottom of that. I used the ControlFileGenerator in Windows 7 and I copied the control file it generated directly to my unix environment without opening it in Windows (I mean the file was not edited anywhere afterwards). So I used the GENERAL-INFO part from the example sample-control-file.ctl after editing for my case. And the next error was this: Error: uneven terms in sample line for pop 1. I compared the control file generated by ControlFileGenerator with the example control file and noticed that the generated one had either a space or a tab after the "d" for each samples line of each population. Here is an example:
Here it is not so informative, but after "Norway d" there is a space that Gphocs thinks it is a third sample and gives an error. I deleted those for each sample and it worked. Best.. |
All of these errors appear to stem from the fact that you're generating the control file on Windows (in the Control File Generator) and then using it on a Linux machine. When you transfer text files between Windows and Linux you have to use a special converter to switch the newline characters (e.g. dos2unix). Because the newline characters are differernt, G-PhoCS cannot successfully read the last token of every line. |
Hello again,
I am trying to use my newick tree with the ControlFileGenerator and I don't understand the rules here. When I type in the example tree it works, but my tree which comes from a FigTree export and also works on treeview of etoolkit without an issue gives error with your program:
((((Norway,NPresident),NPtransient),SouthAfrican),Antarctic,MarionIsland)
It says "Errors in the tree input" "Last character can't be a braket or a comma"
When I add ";" or "root" to the end, it then says "Error: Check your commas"
Can you see a reason what may be causing the error?
Thanks!
The text was updated successfully, but these errors were encountered: