Parsing phylogenetic trees (newick format)
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- bioinformatics
Research direction
The issue asks for a new phylo.rs module that parses Newick strings into a struct and prints them back; the payload names no existing file to edit. Start by reading the Newick examples in the issue body and decide on the node representation. Done means the listed examples, from the unnamed tree through the rooted-on-a-leaf tree, parse and print back equivalently, with tests for each.
Written by the indexing model from the issue text.
Description
Is your feature request related to a problem? Please describe.
Would like to add parsing of newick format just to print the newick in the first place. Newick is described here:https://en.wikipedia.org/wiki/Newick_format. It is possible to get multiple newick trees inside a single file, they each finish with a semicolon. Some trees can have many nodes, the structure is a graph-type with nodes, edges and leaves. There is an XML format that some python programs parse newick into, phyloXML
Describe the solution you'd like
Looking to start a module phylo.rs with a parse of newick into some type of good struct or hashmap in the first place, with just ability to print it out.
Describe alternatives you've considered
There are some newick tree parsers in crates.io but they all seem to be a few years old, for example newick_0.11.0
Additional context
Various types of newick tree to parse: The one below marked as "popular" is the one I've seen much the most often, so we could concentrate on that structure and allow the others if possible. There are multiple nodes.
(,,(,)); no nodes are named
(A,B,(C,D)); leaf nodes are named
(A,B,(C,D)E)F; all nodes are named
(:0.1,:0.2,(:0.3,:0.4):0.5); all but root node have a distance to parent
(:0.1,:0.2,(:0.3,:0.4):0.5):0.0; all have a distance to parent
(A:0.1,B:0.2,(C:0.3,D:0.4):0.5); distances and leaf names (popular)
(A:0.1,B:0.2,(C:0.3,D:0.4)E:0.5)F; distances and all names
((B:0.2,(C:0.3,D:0.4)E:0.5)F:0.1)A; a tree rooted on a leaf node (rare)
- Dominant language
- Rust
- Stars
- 38
- Forks
- 15
- Avg merge
- 21h 33m
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LCrossman/microBioRust
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
LCrossman/microBioRust#57 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
LCrossman/microBioRust#53 · 1 reaction ·
-
legacy manual annotation format rare error missing last codon in pseudogene after genbank! parseOpen
Difficulty 3/5 Half a day Newbie friendliness 40/100
LCrossman/microBioRust#50 ·
-
enhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 25/100
LCrossman/microBioRust#19 ·
-
Difficulty 5/5 Over a week Newbie friendliness 8/100
LCrossman/microBioRust#18 · 1 reaction ·
All issues in LCrossman/microBioRust
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
longbridge/gpui-kit#3620 ·
Maintainers usually reply within 1 day
-
corro-client drops the last byte of a response line that has no trailing newlinePossibly taken @RaphaelFakhri claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
proxy: include denial_category in the "proxy request denied" log linePossibly taken @sreyas-endor claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
nolabs-ai/nono#2172 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
metasequoiaime/msime#9113 ·
Maintainers usually reply within 1 day
-
[Enhancement] Make use of available space to display more processes when maximized in Memory pageOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
pop-os/cosmic-monitor#126 ·
Maintainers usually reply within 1 day