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

ngs-dashboard

v0.0.5

Published

Generic dashboard that updates plots automatically when local files change. Used currently for viewing Bioinformatics and NGS data at Radiant Genomics.

Downloads

6

Readme

NGS Dashboard

Simple webapp showing statistics (plots and tables) from data files. The plots automatically update when files change. The app can merge columns from multiple files and make additional calculations from the data, such as N50.

MIT License

screenshot

##Setup

Tested on Ubuntu 14, 15, and 16

  1. Create .env file and setup data folder. See next sections for details.

  2. Install and start the server.

npm install -g ngs-dashboard
#start new screen
start-dashboard-server

It best to start the server in a separate screen so that the web server keeps running and you can watch the console logs when needed.

##Create .env file

  1. Create a file named .env in the folder from where you will be running start-dashboard-server Example .env file:
DATA_FOLDER=plates
CONFIG_FILE_NAME=.dashboard
  1. Inside the .env file, specify the location of the main data folder, e.g. plates, and the name of the configuration file, e.g. .dashboard. The main data folder will contain sub-folders (projects). Each project folder must contain a configuration file. Example configuration file in the next section.

##Setup data folder

  1. The data set folder is a single folders containing project folders. In many cases, the project folders may be symbolic links to the actual data folder. For example, if plate-10 is located in /mnt/md0/Henry/data/my-plate-A/, then you should use the following command to create a link inside the project folder ln -s /mnt/md0/Henry/data/my-plate-A/ your-data-folder/plate-10.

  2. Each data set folder must contain a configuration file, e.g. .dashboard, which is described in the next section.

##Plots configuration file Each data set must reside in a single folder, e.g. plate-10. Each data set can contain multiple plots. These plots are specified using a configuration file, e.g. .dashboard.

The configuration file can be used to select specific files based on patterns and specific columns from those files. The webapp will concatinate the selected columns.

In the below example, website type is a special type of display where the given url is displayed as an iframe. The calc section is used to add extra on-the-fly data to the plot. In this case, the N50 values are automatically calculated from the data. You need to modify calc.js in order to add additional functions.

Contig Sizes:
  category: contigs
  type: boxplot
  files: "*.coverage.stats.tab"
  columns: 2..2
  ylabel: size
  ytype: log
  calc:
    - n50

Contig Fold Coverage:
  category: contigs
  type: boxplot
  files: "*.coverage.stats.tab"
  columns: 1..1
  ylabel: fold
  ytype: log

Read Counts:
  category: reads
  type: line
  files: "*.read_counts.tab"
  xlabel: stage
  ylabel: reads
  ytype: log

Quality Scores (forward):
  category: reads
  type: line
  files: "*.quality_scores.R1.tab"
  columns: 1..1
  xlabel: bps
  ylabel: scores

Quality Scores (reverse):
  category: reads
  type: line
  files: "*.quality_scores.R2.tab"
  columns: 1..1
  xlabel: bps
  ylabel: scores

GC Content:
  category: reads
  type: counts
  files: "*.GC.tab"
  xlabel: percent

FastQC:
  type: webpage
  url: "*.unmerged1_fastqc.html"