Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Remi PLANEL
bioviz-js
Commits
b02b0dc8
Commit
b02b0dc8
authored
Aug 31, 2021
by
Remi PLANEL
Browse files
add console
parent
72796f71
Pipeline
#64216
passed with stages
in 2 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/scripts/component/qtl/genome-scan.ts
View file @
b02b0dc8
...
...
@@ -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
>
,
chromosome
s
:
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
=
chromosome
s
?
lod_score_per_chromosome
.
filter
(
d
=>
chromosome
s
.
some
(
el
=>
el
===
d
.
chr
))
:
lod_score_per_chromosome
const
chrDatasMap
=
d3Array
.
group
(
filteredLodScorePerChromosome
,
d
=>
d
.
chr
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment