Commit 7799a582 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add some console

parent b02b0dc8
Pipeline #64219 passed with stages
in 2 minutes and 23 seconds
......@@ -10,13 +10,12 @@ import { GenomeScanData, SignificanceThreshold } from "../../types";
export default function () {
function genomeScan(
_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.error("chromosomes")
console.log(chromosomes)
const threholdFormat = d3Format.format(".2f");
_selection.each(function ({ lod_score_per_chromosome, significance_thresholds }: GenomeScanData) {
console.log("chromosomes")
const container = this;
if (container) {
const maxLodScoreStr = d3Array.max(lod_score_per_chromosome, d => d.lod);
......@@ -26,6 +25,7 @@ export default function () {
const maxLodScore = maxLodScoreStr;
const filteredLodScorePerChromosome = chromosomes
? lod_score_per_chromosome.filter(d => chromosomes.some(el => el === d.chr))
// ? lod_score_per_chromosome.filter(d => d.chr === chromosomes)
: 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