Commit b02b0dc8 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add console

parent 72796f71
Pipeline #64216 passed with stages
in 2 minutes and 29 seconds
......@@ -9,10 +9,12 @@ import { GenomeScanData, SignificanceThreshold } from "../../types";
export default function () {
function genomeScan(
_selection: d3Selection.Selection<HTMLDivElement, GenomeScanData, any, any>, chromosome: String[] | undefined = undefined
_selection: d3Selection.Selection<HTMLDivElement, GenomeScanData, any, any>, chromosomes: String[] | undefined = undefined
// legendClickCallback: (event: Plotly.LegendClickEvent) => boolean,
// legendDoubleClickCallback: (event: Plotly.LegendClickEvent) => boolean
) {
console.log("chromosomes")
console.log(chromosomes)
const threholdFormat = d3Format.format(".2f");
_selection.each(function ({ lod_score_per_chromosome, significance_thresholds }: GenomeScanData) {
const container = this;
......@@ -22,8 +24,8 @@ export default function () {
const thresholdColor = scaleSequential(interpolatePlasma).domain([80, 100])
// const thresholdColor = scaleLinear<string, string>().domain([80, 100]).range(["red", "blue"])
const maxLodScore = maxLodScoreStr;
const filteredLodScorePerChromosome = chromosome
? lod_score_per_chromosome.filter(d => chromosome.some(el => el === d.chr))
const filteredLodScorePerChromosome = chromosomes
? lod_score_per_chromosome.filter(d => chromosomes.some(el => el === d.chr))
: lod_score_per_chromosome
const chrDatasMap = d3Array.group(filteredLodScorePerChromosome, d => d.chr);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment