Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

feat: create Rust API's for scenarios in which nodes in the Newick string are not represented numerically #104

@madelinegordon

Description

@madelinegordon

Currently, the I/O scenarios are Python-specific. As a nice-to-have, if we wanted to extend the I/O to other language scenarios, we would need corresponding API's in the Rust project for taking a Newick string from labelled format to integers, and vice-versa.

Create the following public API's in newick/mod.rs:

  • read_newick_labeled, which will take in a newick string and return the modified Newick string and dictionary which maps integers to species names

  • apply_newick_labels - takes in Newick string with nodes as integers as well as the mappings dictionary, applies the mappings, returns the full Newick

  • Add Python API's in lib.rs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions