New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

biojs-vis-rohart-msc-test

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

biojs-vis-rohart-msc-test - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

40

build/test.js

@@ -715,3 +715,3 @@ require=(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({"biojs-vis-rohart-msc-test":[function(require,module,exports){

// Trying to make a quantative scale using an old way - ended up not using this
// Trying to make a quantative scale using an old way - ended up not using this anymore
// https://github.com/mbostock/d3/wiki/Quantitative-Scales#quantize

@@ -722,13 +722,10 @@ // http://stackoverflow.com/questions/17671252/d3-create-a-continous-color-scale-with-many-strings-inputs-for-the-range-and-dy

// you can check the number you can use here: https://github.com/mbostock/d3/blob/master/lib/colorbrewer/colorbrewer.js
// end of not using this anymore
// Or we can use something we make up
// http://synthesis.sbecker.net/articles/2012/07/16/learning-d3-part-6-scales-colors
var numColors = 9;
var heat_map_colour = d3.scale.linear()
.domain([0,200])
.range(["pink","red"]);
.domain(options.legend_range)
.range(options.domain_colours);

@@ -770,23 +767,2 @@

this.convert_domain_colors_to_d3 = function(graph){
domain_colors = graph.options.domain_colors;
domain_colors_d3 = Array();
domains_d3 = Array();
// from domain_colors : {'MSC':'red','Non-MSC':'blue','Unsure':'grey'},
// separate into ['MSC','Non-MSC','Unsure'] and
// ['blue','green','grey'] respective colors.
for (key in domain_colors){
color = domain_colors[key];
domains_d3.push(key);
domain_colors_d3.push(color);
}
graph.options.domains_d3 = domains_d3 ;
graph.options.colors_d3 = d3.scale.ordinal().domain(domains_d3).range(domain_colors_d3);
return graph;
} // convert_domain_colors_to_d3
this.setup_legend = function(graph){

@@ -797,7 +773,2 @@ svg = graph.svg;

heat_map_colour = graph.heat_map_colour;
//graph = this.convert_domain_colors_to_d3(graph);
//domains_d3 = graph.options.domains_d3;
//colors_d3 = graph.options.colors_d3;
/*

@@ -822,5 +793,4 @@ http://chimera.labs.oreilly.com/books/1230000000345/ch08.html#_cleaning_it_up

legend_values=[200,150,100,50,0];
legend_values=options.legend_values;
legend_x_axis = page_options.width + 60;

@@ -827,0 +797,0 @@ var legend = svg.selectAll("."+options.legend_class)

5

examples/simple.js

@@ -6,2 +6,3 @@ // if you don't specify a html file, the sniper will generate a div with id "rootDiv"

var horizontal_lines = {'lwr':0.4337,'upr':0.5169};
var legend_values=[200,150,100,50,0];

@@ -52,3 +53,2 @@ // this tooltip function is passed into the graph via the tooltip

unique_id: "chip_id",
domain_colors : {'MSC':'grey','Non-MSC':'grey','Unsure':'grey'},
margin:{top: 180, right: 120, bottom: 530, left: 200},

@@ -58,2 +58,5 @@ horizontal_lines: horizontal_lines, // this gets turned into an array of objects

show_horizontal_line_labels: true,
domain_colours : ["pink","red"],
legend_range: [0,200],
legend_values: legend_values,
legend_class: "legend",

@@ -60,0 +63,0 @@ sample_type_order: "BM MSC,BM erythropoietic cells CD235A+,BM granulopoietic cells CD11B+,BM hematopoietic cells CD45+,Developing cortex neural progenitor cells,Ventral midbrain neural progenitor cells,Olfactory lamina propria derived stem cells",

@@ -714,3 +714,3 @@ /*

// Trying to make a quantative scale using an old way - ended up not using this
// Trying to make a quantative scale using an old way - ended up not using this anymore
// https://github.com/mbostock/d3/wiki/Quantitative-Scales#quantize

@@ -721,13 +721,10 @@ // http://stackoverflow.com/questions/17671252/d3-create-a-continous-color-scale-with-many-strings-inputs-for-the-range-and-dy

// you can check the number you can use here: https://github.com/mbostock/d3/blob/master/lib/colorbrewer/colorbrewer.js
// end of not using this anymore
// Or we can use something we make up
// http://synthesis.sbecker.net/articles/2012/07/16/learning-d3-part-6-scales-colors
var numColors = 9;
var heat_map_colour = d3.scale.linear()
.domain([0,200])
.range(["pink","red"]);
.domain(options.legend_range)
.range(options.domain_colours);

@@ -769,23 +766,2 @@

this.convert_domain_colors_to_d3 = function(graph){
domain_colors = graph.options.domain_colors;
domain_colors_d3 = Array();
domains_d3 = Array();
// from domain_colors : {'MSC':'red','Non-MSC':'blue','Unsure':'grey'},
// separate into ['MSC','Non-MSC','Unsure'] and
// ['blue','green','grey'] respective colors.
for (key in domain_colors){
color = domain_colors[key];
domains_d3.push(key);
domain_colors_d3.push(color);
}
graph.options.domains_d3 = domains_d3 ;
graph.options.colors_d3 = d3.scale.ordinal().domain(domains_d3).range(domain_colors_d3);
return graph;
} // convert_domain_colors_to_d3
this.setup_legend = function(graph){

@@ -796,7 +772,2 @@ svg = graph.svg;

heat_map_colour = graph.heat_map_colour;
//graph = this.convert_domain_colors_to_d3(graph);
//domains_d3 = graph.options.domains_d3;
//colors_d3 = graph.options.colors_d3;
/*

@@ -821,5 +792,4 @@ http://chimera.labs.oreilly.com/books/1230000000345/ch08.html#_cleaning_it_up

legend_values=[200,150,100,50,0];
legend_values=options.legend_values;
legend_x_axis = page_options.width + 60;

@@ -826,0 +796,0 @@ var legend = svg.selectAll("."+options.legend_class)

{
"name": "biojs-vis-rohart-msc-test",
"description": "BioJS component to provide a graph of the Rohart MSC Test hosted in Stemformatics",
"version": "0.2.0",
"version": "0.3.0",
"homepage": "https://github.com/rowlandm/biojs-vis-rohart-msc-test",

@@ -6,0 +6,0 @@ "author": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc