wuepgg3-track 3.0.4 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{SharedSystems-D2-L-AEG.mjs → SharedSystems-C25A8QWM.mjs} +675 -433
- package/dist/{WebGLRenderer-0nbxwc6U.mjs → WebGLRenderer-5GDaDku_.mjs} +417 -382
- package/dist/{WebGPURenderer-DWuXep8H.mjs → WebGPURenderer-DPF_CZ2D.mjs} +277 -258
- package/dist/{browserAll-C-dLabXl.mjs → browserAll-BNzjEqpL.mjs} +2 -2
- package/dist/{colorToUniform-DQmiMhES.mjs → colorToUniform-C6ntO3i9.mjs} +9 -8
- package/dist/components/GenomeView/TrackComponents/DynseqComponents/DynseqTrackComponents.d.ts +3 -4
- package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/GenomeAlignComponents.d.ts +3 -1
- package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/HorizontalFragment.d.ts +1 -0
- package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/MultiAlignmentViewCalculator.d.ts +1 -0
- package/dist/components/GenomeView/TrackComponents/GroupedTrackManager.d.ts +3 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/DynamicInteractionTrackComponents.d.ts +59 -0
- package/dist/components/GenomeView/TrackComponents/InteractionComponents/InteractionTrackComponent.d.ts +6 -16
- package/dist/components/GenomeView/TrackComponents/MethylcComponents/MethylCTrackComputation.d.ts +6 -14
- package/dist/components/GenomeView/TrackComponents/QBedComponents/QBedTrackComponents.d.ts +10 -27
- package/dist/components/GenomeView/TrackComponents/RulerComponents/RulerComponent.d.ts +1 -1
- package/dist/components/GenomeView/TrackComponents/VcfComponents/Vcf.d.ts +1 -0
- package/dist/components/GenomeView/TrackComponents/VcfComponents/VcfTrack.d.ts +6 -25
- package/dist/components/GenomeView/TrackComponents/bedComponents/DynamicBedTrackComponents.d.ts +1 -0
- package/dist/components/GenomeView/TrackComponents/bedComponents/FiberTrackComponent.d.ts +5 -40
- package/dist/components/GenomeView/TrackComponents/commonComponents/HoverToolTips/HoverToolTip.d.ts +5 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/OutsideClickDetector.d.ts +1 -1
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/DynamicNumericalTrack.d.ts +1 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/DynamicplotTrackComponent.d.ts +1 -0
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/MatplotTrackComponent.d.ts +1 -1
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalAggregator.d.ts +2 -1
- package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalTrack.d.ts +3 -1
- package/dist/components/GenomeView/TrackComponents/commonComponents/stats/BoxplotTrackComponents.d.ts +4 -38
- package/dist/components/GenomeView/TrackComponents/displayModeComponentMap.d.ts +1 -1
- package/dist/genome-hub/GenomeSerializer.d.ts +1 -1
- package/dist/genome-hub/genome-schema.d.ts +1 -2
- package/dist/getLocalData/LocalBigSource.d.ts +47 -0
- package/dist/getRemoteData/BigSourceWorker.d.ts +47 -0
- package/dist/getRemoteData/BigSourceWorkerGmod.d.ts +10 -0
- package/dist/getRemoteData/VcfSource.d.ts +9 -0
- package/dist/getRemoteData/tabixSource.d.ts +18 -0
- package/dist/getRemoteData/vendor/bbi-js/main/bigwig.d.ts +1 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/bin.d.ts +20 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/das.d.ts +6 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/jszlib.d.ts +1 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/sha1.d.ts +1 -0
- package/dist/getRemoteData/vendor/bbi-js/utils/spans.d.ts +13 -0
- package/dist/{index-DryYmDPe.mjs → index-BjfzAHgP.mjs} +63585 -64977
- package/dist/index.es.js +11 -11
- package/dist/index.umd.js +243 -231
- package/dist/{init-D8gtYsaQ.mjs → init-B9EV4EW9.mjs} +370 -355
- package/dist/models/FeatureAggregator.d.ts +3 -4
- package/dist/models/FeatureArranger.d.ts +7 -1
- package/dist/models/NavigationContext.d.ts +1 -0
- package/dist/models/TrackModel.d.ts +2 -0
- package/dist/models/genomes/allGenomes.d.ts +20 -0
- package/dist/models/genomes/mCalJa1.2.pat.X/mCalJa1.2.pat.X.d.ts +17 -0
- package/dist/models/getXSpan/FeaturePlacer.d.ts +2 -9
- package/dist/models/trackModels/trackProps.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/track-container/index.d.ts +1 -1
- package/dist/trackConfigs/config-menu-components.tsx/ColorConfig.d.ts +1 -0
- package/dist/trackConfigs/config-menu-components.tsx/DownsamplingConfig.d.ts +8 -0
- package/dist/types/track-container.d.ts +5 -0
- package/dist/webworkerAll-DBeEkdnk.mjs +2 -0
- package/package.json +2 -4
- package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/createNewTrackState.d.ts +0 -18
- package/dist/components/GenomeView/TrackComponents/CommonTrackStateChangeFunctions.tsx/getDataAfterConfigChange.d.ts +0 -11
- package/dist/components/testCustomGenome.d.ts +0 -505
- package/dist/webworkerAll-BYF_bwOo.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { T as A, U as Z, P as g, r as te, E as b, b as ie, w as y, e as w, C as V } from "./index-
|
|
2
|
-
import "./init-
|
|
1
|
+
import { T as A, U as Z, P as g, r as te, E as b, b as ie, w as y, e as w, C as V } from "./index-BjfzAHgP.mjs";
|
|
2
|
+
import "./init-B9EV4EW9.mjs";
|
|
3
3
|
class q {
|
|
4
4
|
constructor(e) {
|
|
5
5
|
this._lastTransform = "", this._observer = null, this._tickerAttached = !1, this.updateTranslation = () => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as M, G as x, a as F } from "./index-
|
|
1
|
+
import { S as M, G as x, a as F } from "./index-BjfzAHgP.mjs";
|
|
2
2
|
const T = {
|
|
3
3
|
normal: 0,
|
|
4
4
|
add: 1,
|
|
@@ -135,8 +135,8 @@ const p = class f extends M {
|
|
|
135
135
|
* @param output - The target to output to.
|
|
136
136
|
* @param clearMode - Should the output be cleared before rendering to it
|
|
137
137
|
*/
|
|
138
|
-
apply(t, e,
|
|
139
|
-
t.applyFilter(this, e,
|
|
138
|
+
apply(t, e, s, r) {
|
|
139
|
+
t.applyFilter(this, e, s, r);
|
|
140
140
|
}
|
|
141
141
|
/**
|
|
142
142
|
* Get the blend mode of the filter.
|
|
@@ -155,9 +155,9 @@ const p = class f extends M {
|
|
|
155
155
|
* @returns A shiny new PixiJS filter!
|
|
156
156
|
*/
|
|
157
157
|
static from(t) {
|
|
158
|
-
const { gpu: e, gl:
|
|
158
|
+
const { gpu: e, gl: s, ...r } = t;
|
|
159
159
|
let m, g;
|
|
160
|
-
return e && (m = x.from(e)),
|
|
160
|
+
return e && (m = x.from(e)), s && (g = F.from(s)), new f({
|
|
161
161
|
gpuProgram: m,
|
|
162
162
|
glProgram: g,
|
|
163
163
|
...r
|
|
@@ -257,11 +257,12 @@ class w {
|
|
|
257
257
|
this.renderable = null, this.texture = null, this._batcher = null, this._batch = null, this.bounds = null;
|
|
258
258
|
}
|
|
259
259
|
destroy() {
|
|
260
|
+
this.reset();
|
|
260
261
|
}
|
|
261
262
|
}
|
|
262
|
-
function R(
|
|
263
|
-
const
|
|
264
|
-
t[e++] = (
|
|
263
|
+
function R(i, t, e) {
|
|
264
|
+
const s = (i >> 24 & 255) / 255;
|
|
265
|
+
t[e++] = (i & 255) / 255 * s, t[e++] = (i >> 8 & 255) / 255 * s, t[e++] = (i >> 16 & 255) / 255 * s, t[e++] = s;
|
|
265
266
|
}
|
|
266
267
|
export {
|
|
267
268
|
w as B,
|
package/dist/components/GenomeView/TrackComponents/DynseqComponents/DynseqTrackComponents.d.ts
CHANGED
|
@@ -33,18 +33,17 @@ interface DynseqTrackProps {
|
|
|
33
33
|
end: number;
|
|
34
34
|
};
|
|
35
35
|
forceSvg: boolean;
|
|
36
|
-
|
|
36
|
+
updatedLegend: any;
|
|
37
37
|
basesByPixel: number;
|
|
38
38
|
genomeConfig: any;
|
|
39
39
|
xvaluesData: any;
|
|
40
|
+
dataIdx: number;
|
|
41
|
+
initialLoad: boolean;
|
|
40
42
|
}
|
|
41
43
|
declare class DynseqTrackComponents extends PureComponent<DynseqTrackProps> {
|
|
42
|
-
xToValue: Array<any> | null;
|
|
43
|
-
xToValue2: Array<any> | null;
|
|
44
44
|
allValues: Array<any>;
|
|
45
45
|
drawHeights: Array<any>;
|
|
46
46
|
scales: any;
|
|
47
|
-
hasReverse: boolean;
|
|
48
47
|
constructor(props: DynseqTrackProps);
|
|
49
48
|
computeScales: (xToValue: number[], xToValue2: number[], height: number) => {
|
|
50
49
|
valueToHeight: import("d3-scale").ScaleLinear<number, number, never>;
|
package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/GenomeAlignComponents.d.ts
CHANGED
|
@@ -41,5 +41,7 @@ export declare function renderRoughStrand(strand: string, topY: number, viewWind
|
|
|
41
41
|
}, isPrimary: boolean): any;
|
|
42
42
|
export declare function renderRoughAlignment(placement: {
|
|
43
43
|
[key: string]: any;
|
|
44
|
-
}, plotReverse: boolean, roughHeight: number, targetGenome: any, queryGenome: any
|
|
44
|
+
}, plotReverse: boolean, roughHeight: number, targetGenome: any, queryGenome: any, options: {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}): any;
|
|
45
47
|
export {};
|
package/dist/components/GenomeView/TrackComponents/GenomeAlignComponents/HorizontalFragment.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ interface HorizontalFragmentProps {
|
|
|
12
12
|
children?: React.ReactNode;
|
|
13
13
|
rectHeight: number;
|
|
14
14
|
relativeX: number;
|
|
15
|
+
windowScrollY: number;
|
|
15
16
|
}
|
|
16
17
|
declare class HorizontalFragment extends Component<HorizontalFragmentProps> {
|
|
17
18
|
constructor(props: HorizontalFragmentProps);
|
|
@@ -75,6 +75,7 @@ export declare class MultiAlignmentViewCalculator {
|
|
|
75
75
|
refineRecordsArray(recordsArray: RecordsObj[], visData: ViewExpansion): RefinedObj;
|
|
76
76
|
alignFine(id: any, query: string, records: AlignmentRecord[], oldVisData: ViewExpansion, visData: ViewExpansion, allGaps: Gap[]): Alignment;
|
|
77
77
|
/**
|
|
78
|
+
*
|
|
78
79
|
* Groups and merges alignment records based on their proximity in the query (secondary) genome. Then, calculates
|
|
79
80
|
* draw positions for all records.
|
|
80
81
|
*
|
|
@@ -33,6 +33,9 @@ export declare class GroupedTrackManager {
|
|
|
33
33
|
* @returns list of groups found in the track list, their data, and their original indicies
|
|
34
34
|
*/
|
|
35
35
|
aggregator: NumericalAggregator;
|
|
36
|
+
dynseqAggregator: (data: any[], viewRegion: any, width: number, aggregatorId: string) => any;
|
|
37
|
+
aggregateRecords: (data: any[], viewRegion: any, width: number) => any;
|
|
38
|
+
aggregateFeaturesMatplot: (data: any, viewRegion: any, width: any, aggregatorId: any) => any;
|
|
36
39
|
constructor();
|
|
37
40
|
getGroupScale(tracks: TrackModel[], trackData: any, width: number, viewWindow: OpenInterval, dataIdx: number, trackFetchedDataCache: any): {
|
|
38
41
|
[groupId: number]: {
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React, { MouseEvent } from "react";
|
|
2
|
+
import { FeaturePlacer } from "../../../../models/getXSpan/FeaturePlacer";
|
|
3
|
+
import { GenomeInteraction } from "../../../../getRemoteData/GenomeInteraction";
|
|
4
|
+
import { ScaleChoices } from "../../../../models/ScaleChoices";
|
|
5
|
+
import { DynamicInteractionDisplayMode } from "../../../../trackConfigs/config-menu-models.tsx/DisplayModes";
|
|
6
|
+
interface DynamicInteractionTrackComponentsProps {
|
|
7
|
+
data: GenomeInteraction[];
|
|
8
|
+
options: {
|
|
9
|
+
color: string;
|
|
10
|
+
color2?: string;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
binSize?: number;
|
|
13
|
+
scoreScale?: string;
|
|
14
|
+
scoreMax?: number;
|
|
15
|
+
scoreMin?: number;
|
|
16
|
+
height: number;
|
|
17
|
+
playing?: boolean;
|
|
18
|
+
speed?: number[];
|
|
19
|
+
lineWidth?: number;
|
|
20
|
+
displayMode: DynamicInteractionDisplayMode;
|
|
21
|
+
dynamicColors?: any[];
|
|
22
|
+
useDynamicColors?: boolean;
|
|
23
|
+
};
|
|
24
|
+
viewer3dNumFrames?: any;
|
|
25
|
+
trackModel: any;
|
|
26
|
+
visRegion: any;
|
|
27
|
+
width: number;
|
|
28
|
+
viewWindow: any;
|
|
29
|
+
updatedLegend?: any;
|
|
30
|
+
dataIdx: number;
|
|
31
|
+
}
|
|
32
|
+
export declare const DEFAULT_OPTIONS: {
|
|
33
|
+
color: string;
|
|
34
|
+
color2: string;
|
|
35
|
+
backgroundColor: string;
|
|
36
|
+
scoreScale: ScaleChoices;
|
|
37
|
+
scoreMax: number;
|
|
38
|
+
scoreMin: number;
|
|
39
|
+
height: number;
|
|
40
|
+
playing: boolean;
|
|
41
|
+
speed: number[];
|
|
42
|
+
lineWidth: number;
|
|
43
|
+
useDynamicColors: boolean;
|
|
44
|
+
dynamicColors: any[];
|
|
45
|
+
displayMode: DynamicInteractionDisplayMode;
|
|
46
|
+
};
|
|
47
|
+
declare class DynamicInteractionTrackComponents extends React.PureComponent<DynamicInteractionTrackComponentsProps> {
|
|
48
|
+
featurePlacer: FeaturePlacer;
|
|
49
|
+
scales: any;
|
|
50
|
+
constructor(props: DynamicInteractionTrackComponentsProps);
|
|
51
|
+
computeScale: () => {
|
|
52
|
+
opacityScale: import("d3-scale").ScaleLinear<number, number, never>;
|
|
53
|
+
min: any;
|
|
54
|
+
max: any;
|
|
55
|
+
};
|
|
56
|
+
showTooltip(event: MouseEvent, interaction: GenomeInteraction): void;
|
|
57
|
+
render(): any;
|
|
58
|
+
}
|
|
59
|
+
export default DynamicInteractionTrackComponents;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { InteractionDisplayMode } from "../../../../trackConfigs/config-menu-models.tsx/DisplayModes";
|
|
3
|
-
import { FeaturePlacer } from "../../../../models/getXSpan/FeaturePlacer";
|
|
4
3
|
import { GenomeInteraction } from "../../../../getRemoteData/GenomeInteraction";
|
|
5
4
|
import { ScaleChoices } from "../../../../models/ScaleChoices";
|
|
6
5
|
import TrackModel from "../../../../models/TrackModel";
|
|
@@ -28,7 +27,9 @@ interface InteractionTrackProps {
|
|
|
28
27
|
bothAnchorsInView?: boolean;
|
|
29
28
|
clampHeight?: boolean;
|
|
30
29
|
getNumLegend?: any;
|
|
30
|
+
forceSvg?: boolean;
|
|
31
31
|
};
|
|
32
|
+
dataIdx?: number;
|
|
32
33
|
forceSvg?: boolean;
|
|
33
34
|
getBeamRefs?: any;
|
|
34
35
|
onSetAnchors3d?: any;
|
|
@@ -37,7 +38,8 @@ interface InteractionTrackProps {
|
|
|
37
38
|
width: number;
|
|
38
39
|
viewWindow: OpenInterval;
|
|
39
40
|
visRegion: DisplayedRegionModel;
|
|
40
|
-
|
|
41
|
+
updatedLegend: any;
|
|
42
|
+
initialLoad?: boolean;
|
|
41
43
|
}
|
|
42
44
|
export declare const DEFAULT_OPTIONS: {
|
|
43
45
|
color: string;
|
|
@@ -58,17 +60,5 @@ export declare const DEFAULT_OPTIONS: {
|
|
|
58
60
|
binSize: number;
|
|
59
61
|
normalization: NormalizationMode;
|
|
60
62
|
};
|
|
61
|
-
declare
|
|
62
|
-
featurePlacer: FeaturePlacer;
|
|
63
|
-
scales: any;
|
|
64
|
-
constructor(props: InteractionTrackProps);
|
|
65
|
-
computeScale: () => {
|
|
66
|
-
opacityScale: import("d3-scale").ScaleLinear<number, number, never>;
|
|
67
|
-
heightScale: import("d3-scale").ScaleLinear<number, number, never>;
|
|
68
|
-
min: any;
|
|
69
|
-
max: any;
|
|
70
|
-
};
|
|
71
|
-
filterData: (data: GenomeInteraction[]) => GenomeInteraction[];
|
|
72
|
-
render(): JSX.Element;
|
|
73
|
-
}
|
|
63
|
+
declare const InteractionTrackComponent: React.FC<InteractionTrackProps>;
|
|
74
64
|
export default InteractionTrackComponent;
|
package/dist/components/GenomeView/TrackComponents/MethylcComponents/MethylCTrackComputation.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare const DEFAULT_OPTIONS: {
|
|
3
3
|
height: number;
|
|
4
4
|
isCombineStrands: boolean;
|
|
@@ -35,6 +35,7 @@ interface MethylCTrackProps {
|
|
|
35
35
|
depthFilter: any;
|
|
36
36
|
maxMethyl: any;
|
|
37
37
|
forceSvg: boolean;
|
|
38
|
+
usePrimaryNav: boolean;
|
|
38
39
|
};
|
|
39
40
|
isLoading?: boolean;
|
|
40
41
|
error?: any;
|
|
@@ -46,19 +47,10 @@ interface MethylCTrackProps {
|
|
|
46
47
|
end: number;
|
|
47
48
|
};
|
|
48
49
|
forceSvg: boolean;
|
|
49
|
-
|
|
50
|
+
updatedLegend: any;
|
|
50
51
|
xvaluesData?: any;
|
|
52
|
+
initialLoad: boolean;
|
|
53
|
+
dataIdx: number;
|
|
51
54
|
}
|
|
52
|
-
declare
|
|
53
|
-
aggregatedRecords: any[];
|
|
54
|
-
scales: any;
|
|
55
|
-
constructor(props: MethylCTrackProps);
|
|
56
|
-
aggregateRecords: (data: any[], viewRegion: any, width: number) => any[];
|
|
57
|
-
computeScales: (xMap: any[], height: number, maxMethyl: number) => {
|
|
58
|
-
methylToY: import("d3-scale").ScaleLinear<number, number, never>;
|
|
59
|
-
depthToY: import("d3-scale").ScaleLinear<number, number, never>;
|
|
60
|
-
};
|
|
61
|
-
renderVisualizer(): any;
|
|
62
|
-
render(): any;
|
|
63
|
-
}
|
|
55
|
+
declare const MethylCTrack: React.FC<MethylCTrackProps>;
|
|
64
56
|
export default MethylCTrack;
|
|
@@ -15,16 +15,13 @@ type Options = {
|
|
|
15
15
|
markerSize: number;
|
|
16
16
|
showHorizontalLine: boolean;
|
|
17
17
|
horizontalLineValue: number;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
annotation: string;
|
|
23
|
-
relativeX?: number;
|
|
24
|
-
relativeY?: number;
|
|
18
|
+
packageVersion?: boolean;
|
|
19
|
+
label?: string;
|
|
20
|
+
usePrimaryNav?: boolean;
|
|
21
|
+
forceSvg?: boolean;
|
|
25
22
|
};
|
|
26
23
|
type QBedTrackProps = {
|
|
27
|
-
data:
|
|
24
|
+
data: Array<any>;
|
|
28
25
|
options: Options;
|
|
29
26
|
isLoading: boolean;
|
|
30
27
|
error: any;
|
|
@@ -33,7 +30,10 @@ type QBedTrackProps = {
|
|
|
33
30
|
trackModel: any;
|
|
34
31
|
viewWindow: any;
|
|
35
32
|
forceSvg: boolean;
|
|
36
|
-
|
|
33
|
+
updatedLegend: any;
|
|
34
|
+
xvaluesData?: Array<any>;
|
|
35
|
+
dataIdx: number;
|
|
36
|
+
initialLoad: boolean;
|
|
37
37
|
};
|
|
38
38
|
export declare const DEFAULT_OPTIONS: {
|
|
39
39
|
height: number;
|
|
@@ -53,22 +53,5 @@ export declare const DEFAULT_OPTIONS: {
|
|
|
53
53
|
/**
|
|
54
54
|
* Track specialized in showing qBED data.
|
|
55
55
|
*/
|
|
56
|
-
declare
|
|
57
|
-
private xToValue;
|
|
58
|
-
private scales;
|
|
59
|
-
constructor(props: QBedTrackProps);
|
|
60
|
-
aggregateFeatures(data: Array<any>, viewRegion: any, width: number): [any[], any[]];
|
|
61
|
-
computeScales(xToValue: any, height: number): {
|
|
62
|
-
valueToY: import("d3-scale").ScaleLinear<number, number, never>;
|
|
63
|
-
min: number;
|
|
64
|
-
max: any;
|
|
65
|
-
};
|
|
66
|
-
renderTooltip(relativeX: number, relativeY: number): any;
|
|
67
|
-
formatCards: (quanta: QBed[]) => any;
|
|
68
|
-
nearestCards: (quanta: QBed[], relativeX: number, relativeY: number, radius: number) => QBed[];
|
|
69
|
-
shuffleArray: (a: any[]) => any[];
|
|
70
|
-
randomCards: (quanta: any[], n: number) => any[];
|
|
71
|
-
downSample(xToValue: any[], sampleSize: number): any[];
|
|
72
|
-
render(): any;
|
|
73
|
-
}
|
|
56
|
+
declare const QBedTrackComponents: React.FC<QBedTrackProps>;
|
|
74
57
|
export default QBedTrackComponents;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { PlacedFeatureGroup } from "../../../../models/FeatureArranger";
|
|
3
2
|
import OpenInterval from "../../../../models/OpenInterval";
|
|
4
3
|
import DisplayedRegionModel from "../../../../models/DisplayedRegionModel";
|
|
5
4
|
import Vcf from "./Vcf";
|
|
@@ -28,6 +27,8 @@ interface VcfTrackProps {
|
|
|
28
27
|
hiddenPixels?: number;
|
|
29
28
|
colorScaleKey: string;
|
|
30
29
|
displayMode?: string;
|
|
30
|
+
usePrimaryNav?: boolean;
|
|
31
|
+
forceSvg?: boolean;
|
|
31
32
|
};
|
|
32
33
|
renderTooltip: any;
|
|
33
34
|
svgHeight: any;
|
|
@@ -36,34 +37,14 @@ interface VcfTrackProps {
|
|
|
36
37
|
getGenePadding: any;
|
|
37
38
|
getHeight: any;
|
|
38
39
|
xvaluesData?: any;
|
|
39
|
-
|
|
40
|
+
forceSvg?: boolean;
|
|
41
|
+
dataIdx: number;
|
|
42
|
+
initialLoad?: boolean;
|
|
40
43
|
}
|
|
41
44
|
/**
|
|
42
45
|
* Track component for VCF annotations.
|
|
43
46
|
*
|
|
44
47
|
* @author Daofeng Li
|
|
45
48
|
*/
|
|
46
|
-
declare
|
|
47
|
-
static displayName: string;
|
|
48
|
-
scales: any;
|
|
49
|
-
constructor(props: VcfTrackProps);
|
|
50
|
-
computeColorScales: (data: Vcf[], colorKey: string, lowValueColor: any, highValueColor: any) => import("d3-scale").ScaleLinear<number, number, never>;
|
|
51
|
-
/**
|
|
52
|
-
* Renders the tooltip for a feature.
|
|
53
|
-
*
|
|
54
|
-
* @param {React.MouseEvent} event - mouse event that triggered the tooltip request
|
|
55
|
-
* @param {Vcf} vcf - vcf for which to display details
|
|
56
|
-
*/
|
|
57
|
-
/**
|
|
58
|
-
* Renders one annotation.
|
|
59
|
-
*
|
|
60
|
-
* @param {PlacedFeature} - feature and drawing info
|
|
61
|
-
* @param {number} y - y coordinate to render the annotation
|
|
62
|
-
* @param {boolean} isLastRow - whether the annotation is assigned to the last configured row
|
|
63
|
-
* @param {number} index - iteration index
|
|
64
|
-
* @return {JSX.Element} element visualizing the feature
|
|
65
|
-
*/
|
|
66
|
-
renderAnnotation(placedGroup: PlacedFeatureGroup, y: number, isLastRow: boolean, index: number): any[];
|
|
67
|
-
render(): any;
|
|
68
|
-
}
|
|
49
|
+
declare const VcfTrack: React.FC<VcfTrackProps>;
|
|
69
50
|
export default VcfTrack;
|
|
@@ -16,10 +16,12 @@ interface FiberTrackProps {
|
|
|
16
16
|
displayMode: FiberDisplayModes;
|
|
17
17
|
hideMinimalItems: boolean;
|
|
18
18
|
pixelsPadding?: number;
|
|
19
|
+
packageVersion?: boolean;
|
|
20
|
+
forceSvg?: boolean;
|
|
21
|
+
usePrimaryNav?: boolean;
|
|
19
22
|
};
|
|
20
23
|
forceSvg?: boolean;
|
|
21
24
|
visRegion: DisplayedRegionModel;
|
|
22
|
-
getNumLegend: any;
|
|
23
25
|
getAnnotationTrack: any;
|
|
24
26
|
trackState: any;
|
|
25
27
|
renderTooltip: any;
|
|
@@ -34,11 +36,7 @@ interface FiberTrackProps {
|
|
|
34
36
|
ROW_HEIGHT: any;
|
|
35
37
|
onClose: any;
|
|
36
38
|
xvaluesData?: any;
|
|
37
|
-
|
|
38
|
-
interface AggregatedFiber {
|
|
39
|
-
on: number;
|
|
40
|
-
off: number;
|
|
41
|
-
count: number;
|
|
39
|
+
dataIdx?: number;
|
|
42
40
|
}
|
|
43
41
|
export declare const DEFAULT_OPTIONS: {
|
|
44
42
|
hiddenPixels: number;
|
|
@@ -56,38 +54,5 @@ export declare const DEFAULT_OPTIONS: {
|
|
|
56
54
|
*
|
|
57
55
|
* @author Daofeng Li
|
|
58
56
|
*/
|
|
59
|
-
declare
|
|
60
|
-
static displayName: string;
|
|
61
|
-
xMap: AggregatedFiber[] | undefined;
|
|
62
|
-
scales: any;
|
|
63
|
-
constructor(props: FiberTrackProps);
|
|
64
|
-
paddingFunc: (feature: Fiber, xSpan: OpenInterval) => number;
|
|
65
|
-
/**
|
|
66
|
-
* Renders one annotation.
|
|
67
|
-
*
|
|
68
|
-
* @param {PlacedFeature} - feature and drawing info
|
|
69
|
-
* @param {number} y - y coordinate to render the annotation
|
|
70
|
-
* @param {boolean} isLastRow - whether the annotation is assigned to the last configured row
|
|
71
|
-
* @param {number} index - iteration index
|
|
72
|
-
* @return {JSX.Element} element visualizing the feature
|
|
73
|
-
*/
|
|
74
|
-
/**
|
|
75
|
-
*
|
|
76
|
-
* @param data
|
|
77
|
-
* @param viewRegion
|
|
78
|
-
* @param width
|
|
79
|
-
* @returns
|
|
80
|
-
*/
|
|
81
|
-
aggregateFibers: (data: Fiber[], viewRegion: DisplayedRegionModel, width: number) => any[];
|
|
82
|
-
computeScales: () => {
|
|
83
|
-
pctToY: import("d3-scale").ScaleLinear<number, number, never>;
|
|
84
|
-
countToY: import("d3-scale").ScaleLinear<number, number, never>;
|
|
85
|
-
pcts: number[];
|
|
86
|
-
maxPct: any;
|
|
87
|
-
counts: number[];
|
|
88
|
-
};
|
|
89
|
-
renderTooltipContents: (x: number) => any;
|
|
90
|
-
visualizer: () => any;
|
|
91
|
-
render(): any;
|
|
92
|
-
}
|
|
57
|
+
declare const FiberTrackComponent: React.FC<FiberTrackProps>;
|
|
93
58
|
export default FiberTrackComponent;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare class NumericalAggregator {
|
|
2
2
|
constructor();
|
|
3
|
-
|
|
3
|
+
aggregateFeatures(data: any, viewRegion: any, width: any, aggregatorId: any): unknown[][];
|
|
4
|
+
xToValueMaker(data: any, viewRegion: any, width: any, options: any): any[];
|
|
4
5
|
}
|
package/dist/components/GenomeView/TrackComponents/commonComponents/numerical/NumericalTrack.d.ts
CHANGED
|
@@ -12,8 +12,10 @@ interface NumericalTrackProps {
|
|
|
12
12
|
viewRegion?: any;
|
|
13
13
|
width?: any;
|
|
14
14
|
forceSvg?: any;
|
|
15
|
-
getNumLegend?: any;
|
|
16
15
|
xvaluesData?: Array<any>;
|
|
16
|
+
dataIdx: number;
|
|
17
|
+
initialLoad: any;
|
|
18
|
+
updatedLegend?: any;
|
|
17
19
|
}
|
|
18
20
|
export declare const DEFAULT_OPTIONS: {
|
|
19
21
|
aggregateMethod: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import * as d3 from "d3";
|
|
3
2
|
import TrackModel from "../../../../../models/TrackModel";
|
|
4
3
|
import DisplayedRegionModel from "../../../../../models/DisplayedRegionModel";
|
|
5
4
|
export declare const DEFAULT_OPTIONS: {
|
|
@@ -22,44 +21,11 @@ interface BoxplotTrackProps {
|
|
|
22
21
|
options: any;
|
|
23
22
|
forceSvg: boolean;
|
|
24
23
|
viewWindow: any;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
xMap: {};
|
|
29
|
-
xAlias: {};
|
|
30
|
-
scales: any;
|
|
31
|
-
constructor(props: any);
|
|
32
|
-
/**
|
|
33
|
-
* make a map for x to the start x of each window, used for tooltip
|
|
34
|
-
* @param {number} width
|
|
35
|
-
* @param {number} size
|
|
36
|
-
* @returns
|
|
37
|
-
*/
|
|
38
|
-
makeXalias: (width: any, sizeInput: any) => {};
|
|
39
|
-
computeBoxStats: (features: any) => {
|
|
40
|
-
q1: number | undefined;
|
|
41
|
-
q3: number | undefined;
|
|
42
|
-
median: number | undefined;
|
|
43
|
-
min: number;
|
|
44
|
-
max: number;
|
|
45
|
-
count: any;
|
|
46
|
-
} | null;
|
|
47
|
-
aggregateFeatures(data: any, viewRegion: any, width: any, useCenter: any, windowSize: any): {};
|
|
48
|
-
computeScales(xMap: any, xAlias: any, height: any): {
|
|
49
|
-
valueToY: d3.ScaleLinear<number, number, never>;
|
|
50
|
-
min: any;
|
|
51
|
-
max: any;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Renders the default tooltip that is displayed on hover.
|
|
55
|
-
*
|
|
56
|
-
* @param {number} relativeX - x coordinate of hover relative to the visualizer
|
|
57
|
-
* @param {number} value -
|
|
58
|
-
* @return {JSX.Element} tooltip to render
|
|
59
|
-
*/
|
|
60
|
-
renderTooltip(relativeX: any): any;
|
|
61
|
-
render(): any;
|
|
24
|
+
updatedLegend?: any;
|
|
25
|
+
dataIdx?: number;
|
|
26
|
+
initialLoad?: boolean;
|
|
62
27
|
}
|
|
28
|
+
declare const BoxplotTrackComponents: React.FC<BoxplotTrackProps>;
|
|
63
29
|
interface BoxplotProps {
|
|
64
30
|
xMap: object;
|
|
65
31
|
scales: any;
|
|
@@ -13,6 +13,6 @@ export declare function getDisplayModeFunction(drawData: {
|
|
|
13
13
|
[key: string]: any;
|
|
14
14
|
}): any;
|
|
15
15
|
export declare const twoDataTypeTracks: {};
|
|
16
|
-
export declare function formatDataByType(genesArr: any[], type: string): any[] | {
|
|
16
|
+
export declare function formatDataByType(genesArr: any[], type: string, reverse: any): any[] | {
|
|
17
17
|
error: any;
|
|
18
18
|
};
|
|
@@ -5,7 +5,7 @@ export default class GenomeSerializer {
|
|
|
5
5
|
static deserialize(object: IGenome): GenomeConfig;
|
|
6
6
|
static validateGenomeObject(object: any): {
|
|
7
7
|
valid: boolean;
|
|
8
|
-
errors: import("ajv").ErrorObject[] | null | undefined;
|
|
8
|
+
errors: import("ajv").ErrorObject<string, Record<string, any>, unknown>[] | null | undefined;
|
|
9
9
|
} | {
|
|
10
10
|
valid: boolean;
|
|
11
11
|
errors?: undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Ajv from 'ajv';
|
|
2
1
|
export declare const genomeDataSchema: {
|
|
3
2
|
type: string;
|
|
4
3
|
required: string[];
|
|
@@ -191,7 +190,7 @@ export declare const genomeDataSchema: {
|
|
|
191
190
|
};
|
|
192
191
|
export declare function validateGenomeData(data: any): {
|
|
193
192
|
valid: boolean;
|
|
194
|
-
errors:
|
|
193
|
+
errors: import("ajv").ErrorObject<string, Record<string, any>, unknown>[] | null | undefined;
|
|
195
194
|
} | {
|
|
196
195
|
valid: boolean;
|
|
197
196
|
errors?: undefined;
|