Repository navigation
[DO NOT MERGE] Parsing Phylogenetic trees - #58
ChinmayMoghe wants to merge 1 commit into
Conversation
…multi tree newick files
|
In terms of robust parsing, I looked through some of my trees and there can be unusual characters in the label, for example: characters reserved in the tree format ( : , ) ; could not ever be in the label, because that would break the format (but it is a possible reason why the format might be invalid) |
|
@LCrossman This is helpful, can you share an example of such a tree with unusual labels, this could become a test case against current implementation, current implementation only creates a |
|
Edge Cases/tests: Campylobacter tree of genbank labels and branch lengths: Multitree file of 10 Staph: Midpoint rooted and fully Bootstrapped final tree of proteins from Staph: popular program iqtree2 which creates trees we might want to parse says this: To avoid problems with downstream software (like tree viewers), IQ-Tree (and also other phylogenetic software) checks the names for such potentially interfering characters and substitutes them by underscores . Permitted characters in sequence names are alphanumeric letters, underscores , dash -, dot ., slash \ and vertical bar |. All other characters are substituted, like e.g. hawk's-eye is converted to hawk_s-eye as which it will appear in the tree. |
Feature: Parsing phylogenetic trees
#51
What changed ?
Added a new member called phylo - This is to make sure that this module forms a logical grouping for everything related to phylogenetic trees
Added phylo/src/lib.rs - Implements Scanner, PhyloParser
This PR is to showcase work in progress and for reference, please share any feedback