Parsing phylogenetic trees (newick format)
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Pouca atividade
- Stack de tecnologia
- rust
- Domínio
- bioinformatics
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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)
- Linguagem predominante
- Rust
- Estrelas
- 38
- Forks
- 15
- Merge médio
- 21h 33min
- PRs com merge (30d)
- 2
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de LCrossman/microBioRust
-
good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
LCrossman/microBioRust#57 ·
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
LCrossman/microBioRust#53 · 1 reação ·
-
legacy manual annotation format rare error missing last codon in pseudogene after genbank! parseAberta
Dificuldade 3/5 Meio dia Facilidade para iniciantes 40/100
LCrossman/microBioRust#50 ·
-
enhancement help wanted
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 25/100
LCrossman/microBioRust#19 ·
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 8/100
LCrossman/microBioRust#18 · 1 reação ·
Todas as issues de LCrossman/microBioRust
Issues semelhantes
-
llm translation
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
BerriAI/litellm#47884 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
bug(stubgen): `typing` / `_typeshed` imports are emitted above `from __future__ import annotations`Abertastubgen
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 2 dias
-
bug-hunt confirmed good first issue
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 76/100
Mantenedores costumam responder em até 1 dia
-
area: pcb area: rendering priority: high status: needs-triage type: bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
-
Update webpki-root-certsAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 62/100
rustls/rustls-platform-verifier#262 · 2 comentários · 2 reações ·