-
Notifications
You must be signed in to change notification settings - Fork 84
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
How can I find out number of patterns and number of partitions from my input file without running Beast2? #1134
Comments
If you run |
@rbouckaert we would like to fetch two specific elements: pattern and site counts from the input file in a php application. If you could provide any pointers/rules that could be used to parse this information from xml file that would be great, as we don't know much about the structure of the input file and its biological interpretation. |
Not familiar with php, but I suppose it can launch an application and parse its output. If so, you could install the Babel package for BEAST 2 and run something like |
Thanks for additional information. We are unable to install other tools and run them on our server, so we need to parse the input XML file which is easy to do in PHP. However, we don't know what to look for in the XML file, if you or someone could provide us any hints on which structures to pull out from XML file and combine them to identify partitions and patterns count, that will do the trick for us. |
I see: what you are looking for are the alignments, which typically have the attribute
When BEAST runs, it shows information from main alignments as well as filtered alignments. |
@rbouckaert thanks for sharing additional information, this helps us to easily identify the partitions, but we also need to find the number of patterns. I discussed this with one of my colleagues who has significant experience with phylogeny codes. He explained that counting patterns is computationally intensive and complex, and is further complicated with input files constructed in few different formats. This essentially would mean we'd need to recreate the entire parser in PHP and deal with memory and compute requirements to identify the number of patterns. So we'll need to step back and use other existing tools like IQtree to calculate and provide this information. Thanks again though. |
Hello,
I have a Beast2 input file. I know if I run the Beas2 jar, I can find out number of patterns and number of partitions from the log file.
Is there a script somewhere that can give me that information without running the Beast2 jar?
Or can somebody tell me how to write a simple script to get number of patterns and number of partitions from my input file?
Thank you very much!
The text was updated successfully, but these errors were encountered: