Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
a Graph-based phylogenetic tree, implemented in Javascript.
Whether your purposes are phylogenetic or taxonomic in nature doesn't matter. That is, whether you are making a evolutional tree, or a species classification tree. Your source of graph data will determine the utility.
todo
I chose Nepenthes, because I grow them at home! This project is part of a bigger one related to carnivorous plants and terraria that I'm breaking apart.
I'm a hobbiest, so if youre actually in a scientific field and have favorite phylogenetic database, data structure, protocol to share this kind of data, or other research I know nothing about!, I'd love to hear about it in the issues.
Install package.
yarn add petrie
Import module.
import Tree from 'petrie';
Create a cached tree from the ICPS Carnivorous Plant Names Database.
Create a cached tree using NCBS.
Creating your own tree.
Import your data.
import data from './data'; // default export location
Initialize a new Tree
instance.
const tree = new Tree(data);
Searching.
tree.find('nepenthes');
tree.find('nepenthes a');
Taxonomy
const ampullaria = tree.find('nepenthes ampullaria')[0];
ampullaria.name // binomial name
ampullaria.domain
ampullaria.order
ampullaria.species
ampullaria.divisions // synonymous with Species.prototype.children
ampullaria.order.divisions
// using HAMT methods to determine parents and children
ampullaria.children
const nepenthes = tree.find('nepenthes')[0]
ampullaria.isParent(nepenthes);
// false
nepenthes.isParent(ampullaria);
// true
Phylogeny
const nepenthes
ampullaria.geneticDistance();
HAMT
Using HAMT means that we have an entire tree-searching algorithm at our hands. Let's use it to create a binomial name searching autocomplete.
Graphing
D3 is an optional dependency to try to keep this project footprint small, and because not everybody needs graphing. If you like other chart libraries, please feel free to let me know in the issues.
import d3 from 'd3';
Issues and pull requests are very welcome!
yarn test
MIT
FAQs
a graph-based phylogenetic tree, implemented in Javascript.
The npm package petrie receives a total of 0 weekly downloads. As such, petrie popularity was classified as not popular.
We found that petrie demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.