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

paxdb-service-orthology-storage

v4.0.4

Published

This is the [pax-db.org](http://pax-db.org) orthology storage microservice. It consists of two docker images, one for neo4j and another to import data.

Downloads

5

Readme

This is the pax-db.org orthology storage microservice. It consists of two docker images, one for neo4j and another to import data.

As a bonus it exports an npm module which exposes the api. Example usage:

const opts = {server:'http://neo4j:7474',user:'neo4j',pass:'secret'};
const orth = require('paxdb-service-orthology-storage')(opts);
orth.count('Protein').then(numProteins => console.log(`num proteins: ${numProteins}`);
orth.loadOrthologs('9606.ENSP00000356969', 'PRIMATES', 'BRAIN').
    then(cogs => console.log(`orthologs: ${JSON.stringify(cogs)}));

Installation

npm install paxdb-service-orthology-storage

Versioning

All versions are <major>.<minor>.<patch>, where major and minor follow pax-db.org versions.

License

MIT. See "LICENSE.txt".

Neo4j Dockerfile

A Dockerfile that produces a Docker Image for Neo4j.

Neo4j version

2.3.7

Usage

Build the image

To create the image paxdb/neo4j, execute the following command:

$ docker build -t paxdb/neo4j .

Run the image

To run the image and bind to host port 7474:

$ docker run -d --name neo4j -p 7474:7474 paxdb/neo4j

Once it's up and running open neo4j console, for example http://0.0.0.0:32768, and set the password.

Now create the second container to run the import:

sudo docker build -t paxdb/orthology-import -f Dockerfile.index .
sudo docker run --rm paxdb/orthology-import

Persistent data

The Neo4j server is configured to store data in the /data directory inside the container. You can map the container's /data volume to a volume on the host so the data becomes independent of the running container:

$ mkdir -p /tmp/neo4j
$ docker run -d \
    --name neo4j \
    -p 7474:7474 \
    -v /tmp/neo4j:/data \
    paxdb/neo4j