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

hssp-curve

v1.0.9

Published

Visualize the HSSP curve and impose the BLAST-derived sequence alignments and allow the user to dynamically filter and export the data shown on the graph for better insights.

Downloads

23

Readme

hssp-curve

NPM version

Visualize the HSSP curve and impose the BLAST-derived sequence alignments and allow the user to dynamically filter and export the data shown on the graph for better insights.

Getting Started

Install the module with:

npm install hssp-curve

A simple example how to use the component:

var hssp_curve = require('hssp-curve');
var instance = new hssp_curve({el: yourDiv, data: "/single.xml"});
instance.render();

About this project

Is is developed using jquery, jquery UI, bootstrap and highcharts. The tool parses the xml input, turns it into readable json and then plots the data extracted from the json into the graph. It supports Blast output version BLASTP 2.2.29+. The input loaded here by default come from a sample output which may contain bad data so, for better understanding alignment result. For generating the alignment output, you can use <a href="http://blast.ncbi.nlm.nih.gov/Blast.cgi">BLAST</a>. The algorithm for calculating HSSP Curve and HSSP ferenced from this <a href="http://www.ncbi.nlm.nih.gov/pmc/articles/PMC169026/?report=classic">paper</a>.

In the blast output, multiple hits are parsed and from the hsp objects the best is chosen to be displayed in the graph. Taking into account the hssp curve distance and hssp score min and max values the tool will prepare the downloadable content and allow the user to export the data in text files.

When a new input file comes in, the tool will re-initialise the graph. Once it does so, all the filtering will be done by just refreshing the already displayed data (hiding and showing points, moving the curve and re-create the text documents to be downloaded).

Features: Ability to filter based on hssp scores Ability to zoom by selecting a part of the graph Ability to download a screenshot of the graph or print it Ability to download all the elements that are below or above the hssp curve in .txt format (hint: check out the pie chart) Ability to show/hide different data from the legend of the graph Ability to define the distance from the hssp curve (0 being the original hssp curve)

Documentation

Constructor Method;

The constructor expects an array parameter with these elements:

Parameter: el Type: DOM element Example: $("#yourDiv")

Parameter: data Type: XML data reference Example: /single.xml

The constructor of the HSSP Curve is responsible for initializing the HSSP Curve and appending the fundamental html elements to yourDiv

var instance = new hssp_curve({el: yourDiv, data: "/single.xml"});

Render Method;

The render method has no parameters.

This method will bind the event handlers to the html inputs and will render the graph.

instance.render();

Contributing

All contributions are welcome.

Support

If you have any problem or suggestion please open an issue here.

Highcharts License (http://www.highcharts.com/)

This tool is build using highcharts which is a library free for personal websites, school sites, or non-profit organizations. If you are thinking to use this tool for other purposes, you need the highchart author's permissions.

Quoted from highcharts website: "Do you want to use products for a personal website, a school site or a non-profit organisation? Then you don't need the author's permission, just go on and download. For commercial websites and projects, see License and Pricing." https://shop.highsoft.com/

License

This software is licensed under the Apache 2 license, quoted below.

Copyright (c) 2015, bardhlohaj

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.