npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

phyta-cli

v1.0.6

Published

Console line interface that process phylogenetic trees metrics.

Downloads

7

Readme

phyta-cli

NPM

Command line interface, that allows the user to process trees with the metrics and parsers available.

Install:

In order to use the phyta-cli you need to install it globally in your machine using:

npm install -g phyta-cli

Options:

  • -h, --help Shows the usage information.

  • -V, --version Shows the CLI version number.

  • -l, --path <path> Path to folder with files to be processed.

  • -f, --trees <path> Path to file with trees to be processed.

  • -t, --types <path> Path to file with tree types.

  • -m, --metrics <path> Path to file with metrics.

  • -p, --parser <parser> Parser to be used on the trees.

  • -o, --output <path> Output path where the results will be saved.

All command options are required, if any one of them is missing an exception will be thrown.

Usage example:

In order to run PhytA-cli from command line, you must specify,the metrics that will be used, the trees and their types. Each one in a different file. All the metrics, trees and tree types are separated by $ character.

Tree file:

trees.txt

(A,B,(C,D)E)F;$(A,B,(C,D)E)F;

Tree types file:

types.txt

rooted$rooted

Metrics file:

metrics.txt

robinsonFoulds$robinsonFouldsLength

Using the files specified above, we can run CLI using this command:

phyta-cli --path /Users/rafae/Desktop/Trees/ --trees trees.txt --types types.txt --metrics metrics.txt --parser newick --output results

Results:

Now we give more details about the trees inserted and we mark the similarities and dissimilarities between phylogenetic trees given by the json field diffsT1 and diffsT2.

Supported metrics and parsers:

Now we support four metrics!! Each are: Robinson–Foulds, Robinson–Foulds Length, triplet and quartet metric.

More parsers may be added in the future but for now only newick parser is supported.

Web-application:

If you desire to see the tree visualization and not only the result values, we have web application temporally hosted. Feel free to test it out and if possible give us some opinions and critics.