@jbrowse/plugin-bed 2.16.1 → 2.18.0
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/BedAdapter/BedAdapter.d.ts +15 -5
- package/dist/BedAdapter/BedAdapter.js +17 -13
- package/dist/BedAdapter/configSchema.d.ts +0 -21
- package/dist/BedAdapter/configSchema.js +1 -25
- package/dist/BedAdapter/index.d.ts +1 -1
- package/dist/BedGraphAdapter/BedGraphAdapter.d.ts +24 -0
- package/dist/BedGraphAdapter/BedGraphAdapter.js +130 -0
- package/dist/BedGraphAdapter/configSchema.d.ts +15 -0
- package/dist/BedGraphAdapter/configSchema.js +19 -0
- package/dist/BedGraphAdapter/index.d.ts +2 -0
- package/dist/BedGraphAdapter/index.js +39 -0
- package/dist/BedGraphTabixAdapter/BedGraphTabixAdapter.d.ts +18 -0
- package/dist/BedGraphTabixAdapter/BedGraphTabixAdapter.js +105 -0
- package/dist/BedGraphTabixAdapter/configSchema.d.ts +29 -0
- package/dist/BedGraphTabixAdapter/configSchema.js +34 -0
- package/dist/BedGraphTabixAdapter/index.d.ts +2 -0
- package/dist/BedGraphTabixAdapter/index.js +39 -0
- package/dist/BedTabixAdapter/BedTabixAdapter.d.ts +6 -5
- package/dist/BedTabixAdapter/BedTabixAdapter.js +23 -9
- package/dist/BedTabixAdapter/configSchema.d.ts +0 -18
- package/dist/BedTabixAdapter/configSchema.js +1 -22
- package/dist/BedTabixAdapter/index.d.ts +1 -1
- package/dist/BedpeAdapter/BedpeAdapter.d.ts +4 -2
- package/dist/BedpeAdapter/BedpeAdapter.js +7 -9
- package/dist/BedpeAdapter/configSchema.d.ts +0 -7
- package/dist/BedpeAdapter/configSchema.js +1 -12
- package/dist/BedpeAdapter/index.d.ts +1 -1
- package/dist/BigBedAdapter/BigBedAdapter.d.ts +14 -6
- package/dist/BigBedAdapter/BigBedAdapter.js +72 -62
- package/dist/BigBedAdapter/configSchema.d.ts +0 -9
- package/dist/BigBedAdapter/configSchema.js +1 -13
- package/dist/BigBedAdapter/index.d.ts +1 -1
- package/dist/generateBedMethylFeature.d.ts +31 -0
- package/dist/generateBedMethylFeature.js +30 -0
- package/dist/generateRepeatMaskerFeature.d.ts +51 -0
- package/dist/generateRepeatMaskerFeature.js +41 -0
- package/dist/generateUcscTranscript.d.ts +15 -0
- package/dist/generateUcscTranscript.js +95 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -4
- package/dist/types.d.ts +18 -0
- package/dist/types.js +2 -0
- package/dist/util.d.ts +184 -29
- package/dist/util.js +134 -156
- package/esm/BedAdapter/BedAdapter.d.ts +15 -5
- package/esm/BedAdapter/BedAdapter.js +18 -14
- package/esm/BedAdapter/configSchema.d.ts +0 -21
- package/esm/BedAdapter/configSchema.js +1 -25
- package/esm/BedAdapter/index.d.ts +1 -1
- package/esm/BedGraphAdapter/BedGraphAdapter.d.ts +24 -0
- package/esm/BedGraphAdapter/BedGraphAdapter.js +124 -0
- package/esm/BedGraphAdapter/configSchema.d.ts +15 -0
- package/esm/BedGraphAdapter/configSchema.js +17 -0
- package/esm/BedGraphAdapter/index.d.ts +2 -0
- package/esm/BedGraphAdapter/index.js +10 -0
- package/esm/BedGraphTabixAdapter/BedGraphTabixAdapter.d.ts +18 -0
- package/esm/BedGraphTabixAdapter/BedGraphTabixAdapter.js +102 -0
- package/esm/BedGraphTabixAdapter/configSchema.d.ts +29 -0
- package/esm/BedGraphTabixAdapter/configSchema.js +32 -0
- package/esm/BedGraphTabixAdapter/index.d.ts +2 -0
- package/esm/BedGraphTabixAdapter/index.js +10 -0
- package/esm/BedTabixAdapter/BedTabixAdapter.d.ts +6 -5
- package/esm/BedTabixAdapter/BedTabixAdapter.js +23 -9
- package/esm/BedTabixAdapter/configSchema.d.ts +0 -18
- package/esm/BedTabixAdapter/configSchema.js +1 -22
- package/esm/BedTabixAdapter/index.d.ts +1 -1
- package/esm/BedpeAdapter/BedpeAdapter.d.ts +4 -2
- package/esm/BedpeAdapter/BedpeAdapter.js +8 -10
- package/esm/BedpeAdapter/configSchema.d.ts +0 -7
- package/esm/BedpeAdapter/configSchema.js +1 -12
- package/esm/BedpeAdapter/index.d.ts +1 -1
- package/esm/BigBedAdapter/BigBedAdapter.d.ts +14 -6
- package/esm/BigBedAdapter/BigBedAdapter.js +74 -64
- package/esm/BigBedAdapter/configSchema.d.ts +0 -9
- package/esm/BigBedAdapter/configSchema.js +1 -13
- package/esm/BigBedAdapter/index.d.ts +1 -1
- package/esm/generateBedMethylFeature.d.ts +31 -0
- package/esm/generateBedMethylFeature.js +26 -0
- package/esm/generateRepeatMaskerFeature.d.ts +51 -0
- package/esm/generateRepeatMaskerFeature.js +37 -0
- package/esm/generateUcscTranscript.d.ts +15 -0
- package/esm/generateUcscTranscript.js +91 -0
- package/esm/index.d.ts +1 -1
- package/esm/index.js +8 -4
- package/esm/types.d.ts +18 -0
- package/esm/types.js +1 -0
- package/esm/util.d.ts +184 -29
- package/esm/util.js +132 -154
- package/package.json +2 -2
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare function isBedMethylFeature({ splitLine, start, end, }: {
|
|
2
|
+
splitLine: string[];
|
|
3
|
+
start: number;
|
|
4
|
+
end: number;
|
|
5
|
+
}): boolean;
|
|
6
|
+
export declare function generateBedMethylFeature({ splitLine, uniqueId, refName, start, end, }: {
|
|
7
|
+
splitLine: string[];
|
|
8
|
+
uniqueId: string;
|
|
9
|
+
refName: string;
|
|
10
|
+
start: number;
|
|
11
|
+
end: number;
|
|
12
|
+
}): {
|
|
13
|
+
uniqueId: string;
|
|
14
|
+
refName: string;
|
|
15
|
+
start: number;
|
|
16
|
+
end: number;
|
|
17
|
+
code: string | undefined;
|
|
18
|
+
score: number;
|
|
19
|
+
strand: string | undefined;
|
|
20
|
+
color: string | undefined;
|
|
21
|
+
source: string | undefined;
|
|
22
|
+
n_valid_cov: string | undefined;
|
|
23
|
+
fraction_modified: string | undefined;
|
|
24
|
+
n_mod: string | undefined;
|
|
25
|
+
n_canonical: string | undefined;
|
|
26
|
+
n_other_mod: string | undefined;
|
|
27
|
+
n_delete: string | undefined;
|
|
28
|
+
n_fail: string | undefined;
|
|
29
|
+
n_diff: string | undefined;
|
|
30
|
+
n_nocall: string | undefined;
|
|
31
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isBedMethylFeature = isBedMethylFeature;
|
|
4
|
+
exports.generateBedMethylFeature = generateBedMethylFeature;
|
|
5
|
+
function isBedMethylFeature({ splitLine, start, end, }) {
|
|
6
|
+
return +(splitLine[6] || 0) === start && +(splitLine[7] || 0) === end;
|
|
7
|
+
}
|
|
8
|
+
function generateBedMethylFeature({ splitLine, uniqueId, refName, start, end, }) {
|
|
9
|
+
const [, , , code, , strand, , , color, n_valid_cov, fraction_modified, n_mod, n_canonical, n_other_mod, n_delete, n_fail, n_diff, n_nocall,] = splitLine;
|
|
10
|
+
return {
|
|
11
|
+
uniqueId,
|
|
12
|
+
refName,
|
|
13
|
+
start,
|
|
14
|
+
end,
|
|
15
|
+
code,
|
|
16
|
+
score: +fraction_modified || 0,
|
|
17
|
+
strand,
|
|
18
|
+
color,
|
|
19
|
+
source: code,
|
|
20
|
+
n_valid_cov,
|
|
21
|
+
fraction_modified,
|
|
22
|
+
n_mod,
|
|
23
|
+
n_canonical,
|
|
24
|
+
n_other_mod,
|
|
25
|
+
n_delete,
|
|
26
|
+
n_fail,
|
|
27
|
+
n_diff,
|
|
28
|
+
n_nocall,
|
|
29
|
+
};
|
|
30
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export declare function isRepeatMaskerDescriptionField(desc?: string): desc is string;
|
|
2
|
+
export declare function generateRepeatMaskerFeature({ uniqueId, refName, start, end, description, ...rest }: {
|
|
3
|
+
uniqueId: string;
|
|
4
|
+
refName: string;
|
|
5
|
+
start: number;
|
|
6
|
+
end: number;
|
|
7
|
+
description: string;
|
|
8
|
+
[key: string]: unknown;
|
|
9
|
+
}): {
|
|
10
|
+
uniqueId: string;
|
|
11
|
+
refName: string;
|
|
12
|
+
start: number;
|
|
13
|
+
end: number;
|
|
14
|
+
bitsw_score: string | undefined;
|
|
15
|
+
percent_div: string | undefined;
|
|
16
|
+
percent_del: string | undefined;
|
|
17
|
+
percent_ins: string | undefined;
|
|
18
|
+
query_chr: string | undefined;
|
|
19
|
+
query_begin: string | undefined;
|
|
20
|
+
query_end: string | undefined;
|
|
21
|
+
query_remaining: string | undefined;
|
|
22
|
+
orientation: string | undefined;
|
|
23
|
+
matching_repeat_name: string | undefined;
|
|
24
|
+
matching_repeat_class: string | undefined;
|
|
25
|
+
matching_repeat_begin: string | undefined;
|
|
26
|
+
matching_repeat_end: string | undefined;
|
|
27
|
+
matching_repeat_remaining: string | undefined;
|
|
28
|
+
repeat_id: string | undefined;
|
|
29
|
+
description?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
uniqueId: string;
|
|
32
|
+
refName: string;
|
|
33
|
+
start: number;
|
|
34
|
+
end: number;
|
|
35
|
+
description: undefined;
|
|
36
|
+
bitsw_score?: undefined;
|
|
37
|
+
percent_div?: undefined;
|
|
38
|
+
percent_del?: undefined;
|
|
39
|
+
percent_ins?: undefined;
|
|
40
|
+
query_chr?: undefined;
|
|
41
|
+
query_begin?: undefined;
|
|
42
|
+
query_end?: undefined;
|
|
43
|
+
query_remaining?: undefined;
|
|
44
|
+
orientation?: undefined;
|
|
45
|
+
matching_repeat_name?: undefined;
|
|
46
|
+
matching_repeat_class?: undefined;
|
|
47
|
+
matching_repeat_begin?: undefined;
|
|
48
|
+
matching_repeat_end?: undefined;
|
|
49
|
+
matching_repeat_remaining?: undefined;
|
|
50
|
+
repeat_id?: undefined;
|
|
51
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isRepeatMaskerDescriptionField = isRepeatMaskerDescriptionField;
|
|
4
|
+
exports.generateRepeatMaskerFeature = generateRepeatMaskerFeature;
|
|
5
|
+
function isRepeatMaskerDescriptionField(desc) {
|
|
6
|
+
const ret = desc === null || desc === void 0 ? void 0 : desc.trim().split(' ');
|
|
7
|
+
return [0, 1, 2, 3, 5, 6].every(s => (ret === null || ret === void 0 ? void 0 : ret[s]) !== undefined ? !Number.isNaN(+ret[s]) : false);
|
|
8
|
+
}
|
|
9
|
+
function makeRepeatTrackDescription(description) {
|
|
10
|
+
if (isRepeatMaskerDescriptionField(description)) {
|
|
11
|
+
const [bitsw_score, percent_div, percent_del, percent_ins, query_chr, query_begin, query_end, query_remaining, orientation, matching_repeat_name, matching_repeat_class, matching_repeat_begin, matching_repeat_end, matching_repeat_remaining, repeat_id,] = description.trim().split(' ');
|
|
12
|
+
return {
|
|
13
|
+
bitsw_score,
|
|
14
|
+
percent_div,
|
|
15
|
+
percent_del,
|
|
16
|
+
percent_ins,
|
|
17
|
+
query_chr,
|
|
18
|
+
query_begin,
|
|
19
|
+
query_end,
|
|
20
|
+
query_remaining,
|
|
21
|
+
orientation,
|
|
22
|
+
matching_repeat_name,
|
|
23
|
+
matching_repeat_class,
|
|
24
|
+
matching_repeat_begin,
|
|
25
|
+
matching_repeat_end,
|
|
26
|
+
matching_repeat_remaining,
|
|
27
|
+
repeat_id,
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
return { description };
|
|
31
|
+
}
|
|
32
|
+
function generateRepeatMaskerFeature({ uniqueId, refName, start, end, description, ...rest }) {
|
|
33
|
+
return {
|
|
34
|
+
...rest,
|
|
35
|
+
...makeRepeatTrackDescription(description),
|
|
36
|
+
uniqueId,
|
|
37
|
+
refName,
|
|
38
|
+
start,
|
|
39
|
+
end,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { MinimalFeature, TranscriptFeat } from './types';
|
|
2
|
+
export declare function isUcscTranscript({ thickStart, blockCount, strand, }: {
|
|
3
|
+
thickStart?: number;
|
|
4
|
+
blockCount?: number;
|
|
5
|
+
strand?: number;
|
|
6
|
+
}): boolean | 0 | undefined;
|
|
7
|
+
export declare function generateUcscTranscript(data: TranscriptFeat): {
|
|
8
|
+
uniqueId: string;
|
|
9
|
+
strand: number;
|
|
10
|
+
type: string;
|
|
11
|
+
refName: string;
|
|
12
|
+
subfeatures: MinimalFeature[];
|
|
13
|
+
start: number;
|
|
14
|
+
end: number;
|
|
15
|
+
};
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isUcscTranscript = isUcscTranscript;
|
|
4
|
+
exports.generateUcscTranscript = generateUcscTranscript;
|
|
5
|
+
function isUcscTranscript({ thickStart, blockCount, strand, }) {
|
|
6
|
+
return thickStart && blockCount && strand !== 0;
|
|
7
|
+
}
|
|
8
|
+
function generateUcscTranscript(data) {
|
|
9
|
+
const { strand = 0, chrom: _1, chromStart: _2, chromEnd: _3, chromStarts, blockStarts, blockSizes, uniqueId, ...rest } = data;
|
|
10
|
+
const { subfeatures: oldSubfeatures, thickStart, thickEnd, blockCount, refName, ...rest2 } = rest;
|
|
11
|
+
const subfeatures = [];
|
|
12
|
+
const feats = oldSubfeatures
|
|
13
|
+
.filter(child => child.type === 'block')
|
|
14
|
+
.sort((a, b) => a.start - b.start);
|
|
15
|
+
for (const block of feats) {
|
|
16
|
+
const start = block.start;
|
|
17
|
+
const end = block.end;
|
|
18
|
+
if (thickStart >= end) {
|
|
19
|
+
subfeatures.push({
|
|
20
|
+
type: `${strand > 0 ? 'five' : 'three'}_prime_UTR`,
|
|
21
|
+
start,
|
|
22
|
+
end,
|
|
23
|
+
refName,
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
else if (thickStart > start && thickStart < end && thickEnd >= end) {
|
|
27
|
+
subfeatures.push({
|
|
28
|
+
type: `${strand > 0 ? 'five' : 'three'}_prime_UTR`,
|
|
29
|
+
start,
|
|
30
|
+
end: thickStart,
|
|
31
|
+
refName,
|
|
32
|
+
}, {
|
|
33
|
+
type: 'CDS',
|
|
34
|
+
start: thickStart,
|
|
35
|
+
end,
|
|
36
|
+
refName,
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
else if (thickStart <= start && thickEnd >= end) {
|
|
40
|
+
subfeatures.push({
|
|
41
|
+
type: 'CDS',
|
|
42
|
+
start,
|
|
43
|
+
end,
|
|
44
|
+
refName,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
else if (thickStart > start && thickStart < end && thickEnd < end) {
|
|
48
|
+
subfeatures.push({
|
|
49
|
+
type: `${strand > 0 ? 'five' : 'three'}_prime_UTR`,
|
|
50
|
+
start,
|
|
51
|
+
end: thickStart,
|
|
52
|
+
refName,
|
|
53
|
+
}, {
|
|
54
|
+
type: 'CDS',
|
|
55
|
+
start: thickStart,
|
|
56
|
+
end: thickEnd,
|
|
57
|
+
refName,
|
|
58
|
+
}, {
|
|
59
|
+
type: `${strand > 0 ? 'three' : 'five'}_prime_UTR`,
|
|
60
|
+
start: thickEnd,
|
|
61
|
+
end,
|
|
62
|
+
refName,
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
else if (thickStart <= start && thickEnd > start && thickEnd < end) {
|
|
66
|
+
subfeatures.push({
|
|
67
|
+
type: 'CDS',
|
|
68
|
+
start,
|
|
69
|
+
end: thickEnd,
|
|
70
|
+
refName,
|
|
71
|
+
}, {
|
|
72
|
+
type: `${strand > 0 ? 'three' : 'five'}_prime_UTR`,
|
|
73
|
+
start: thickEnd,
|
|
74
|
+
end,
|
|
75
|
+
refName,
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
else if (thickEnd <= start) {
|
|
79
|
+
subfeatures.push({
|
|
80
|
+
type: `${strand > 0 ? 'three' : 'five'}_prime_UTR`,
|
|
81
|
+
start,
|
|
82
|
+
end,
|
|
83
|
+
refName,
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return {
|
|
88
|
+
...rest2,
|
|
89
|
+
uniqueId,
|
|
90
|
+
strand,
|
|
91
|
+
type: 'mRNA',
|
|
92
|
+
refName,
|
|
93
|
+
subfeatures,
|
|
94
|
+
};
|
|
95
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import Plugin from '@jbrowse/core/Plugin';
|
|
2
|
-
import PluginManager from '@jbrowse/core/PluginManager';
|
|
2
|
+
import type PluginManager from '@jbrowse/core/PluginManager';
|
|
3
3
|
export default class BedPlugin extends Plugin {
|
|
4
4
|
name: string;
|
|
5
5
|
install(pluginManager: PluginManager): void;
|
package/dist/index.js
CHANGED
|
@@ -4,11 +4,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
|
|
7
|
-
const BigBedAdapter_1 = __importDefault(require("./BigBedAdapter"));
|
|
8
|
-
const BedpeAdapter_1 = __importDefault(require("./BedpeAdapter"));
|
|
9
|
-
const BedTabixAdapter_1 = __importDefault(require("./BedTabixAdapter"));
|
|
10
|
-
const BedAdapter_1 = __importDefault(require("./BedAdapter"));
|
|
11
7
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
8
|
+
const BedAdapter_1 = __importDefault(require("./BedAdapter"));
|
|
9
|
+
const BedGraphAdapter_1 = __importDefault(require("./BedGraphAdapter"));
|
|
10
|
+
const BedGraphTabixAdapter_1 = __importDefault(require("./BedGraphTabixAdapter"));
|
|
11
|
+
const BedTabixAdapter_1 = __importDefault(require("./BedTabixAdapter"));
|
|
12
|
+
const BedpeAdapter_1 = __importDefault(require("./BedpeAdapter"));
|
|
13
|
+
const BigBedAdapter_1 = __importDefault(require("./BigBedAdapter"));
|
|
12
14
|
class BedPlugin extends Plugin_1.default {
|
|
13
15
|
constructor() {
|
|
14
16
|
super(...arguments);
|
|
@@ -19,6 +21,8 @@ class BedPlugin extends Plugin_1.default {
|
|
|
19
21
|
(0, BedAdapter_1.default)(pluginManager);
|
|
20
22
|
(0, BedpeAdapter_1.default)(pluginManager);
|
|
21
23
|
(0, BedTabixAdapter_1.default)(pluginManager);
|
|
24
|
+
(0, BedGraphAdapter_1.default)(pluginManager);
|
|
25
|
+
(0, BedGraphTabixAdapter_1.default)(pluginManager);
|
|
22
26
|
pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', (adapterGuesser) => {
|
|
23
27
|
return (file, index, adapterHint) => {
|
|
24
28
|
const regexGuess = /\.(bb|bigbed)$/i;
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface MinimalFeature {
|
|
2
|
+
type: string;
|
|
3
|
+
start: number;
|
|
4
|
+
end: number;
|
|
5
|
+
refName: string;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface TranscriptFeat extends MinimalFeature {
|
|
9
|
+
uniqueId: string;
|
|
10
|
+
thickStart: number;
|
|
11
|
+
thickEnd: number;
|
|
12
|
+
blockCount: number;
|
|
13
|
+
blockSizes: number[];
|
|
14
|
+
chromStarts: number[];
|
|
15
|
+
refName: string;
|
|
16
|
+
strand?: number;
|
|
17
|
+
subfeatures: MinimalFeature[];
|
|
18
|
+
}
|
package/dist/types.js
ADDED
package/dist/util.d.ts
CHANGED
|
@@ -1,48 +1,203 @@
|
|
|
1
|
-
import BED from '@gmod/bed';
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import type BED from '@gmod/bed';
|
|
2
|
+
export declare function makeBlocks({ start, uniqueId, refName, chromStarts, blockCount, blockSizes, blockStarts, }: {
|
|
3
|
+
blockCount: number;
|
|
4
|
+
start: number;
|
|
5
|
+
uniqueId: string;
|
|
6
|
+
refName: string;
|
|
7
|
+
chromStarts?: number[];
|
|
8
|
+
blockSizes?: number[];
|
|
9
|
+
blockStarts?: number[];
|
|
10
|
+
}): {
|
|
11
|
+
uniqueId: string;
|
|
12
|
+
start: number;
|
|
13
|
+
end: number;
|
|
14
|
+
refName: string;
|
|
4
15
|
type: string;
|
|
16
|
+
}[];
|
|
17
|
+
export declare function featureData({ line, colRef, colStart, colEnd, scoreColumn, parser, uniqueId, names, }: {
|
|
18
|
+
line: string;
|
|
19
|
+
colRef: number;
|
|
20
|
+
colStart: number;
|
|
21
|
+
colEnd: number;
|
|
22
|
+
scoreColumn: string;
|
|
23
|
+
parser: BED;
|
|
24
|
+
uniqueId: string;
|
|
25
|
+
names?: string[];
|
|
26
|
+
}): {
|
|
27
|
+
uniqueId: string;
|
|
28
|
+
refName: string;
|
|
5
29
|
start: number;
|
|
6
30
|
end: number;
|
|
31
|
+
code: string | undefined;
|
|
32
|
+
score: number;
|
|
33
|
+
strand: string | undefined;
|
|
34
|
+
color: string | undefined;
|
|
35
|
+
source: string | undefined;
|
|
36
|
+
n_valid_cov: string | undefined;
|
|
37
|
+
fraction_modified: string | undefined;
|
|
38
|
+
n_mod: string | undefined;
|
|
39
|
+
n_canonical: string | undefined;
|
|
40
|
+
n_other_mod: string | undefined;
|
|
41
|
+
n_delete: string | undefined;
|
|
42
|
+
n_fail: string | undefined;
|
|
43
|
+
n_diff: string | undefined;
|
|
44
|
+
n_nocall: string | undefined;
|
|
45
|
+
} | {
|
|
46
|
+
uniqueId: string;
|
|
7
47
|
refName: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
48
|
+
start: number;
|
|
49
|
+
end: number;
|
|
50
|
+
bitsw_score: string | undefined;
|
|
51
|
+
percent_div: string | undefined;
|
|
52
|
+
percent_del: string | undefined;
|
|
53
|
+
percent_ins: string | undefined;
|
|
54
|
+
query_chr: string | undefined;
|
|
55
|
+
query_begin: string | undefined;
|
|
56
|
+
query_end: string | undefined;
|
|
57
|
+
query_remaining: string | undefined;
|
|
58
|
+
orientation: string | undefined;
|
|
59
|
+
matching_repeat_name: string | undefined;
|
|
60
|
+
matching_repeat_class: string | undefined;
|
|
61
|
+
matching_repeat_begin: string | undefined;
|
|
62
|
+
matching_repeat_end: string | undefined;
|
|
63
|
+
matching_repeat_remaining: string | undefined;
|
|
64
|
+
repeat_id: string | undefined;
|
|
65
|
+
description?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
uniqueId: string;
|
|
16
68
|
refName: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
69
|
+
start: number;
|
|
70
|
+
end: number;
|
|
71
|
+
description: undefined;
|
|
72
|
+
bitsw_score?: undefined;
|
|
73
|
+
percent_div?: undefined;
|
|
74
|
+
percent_del?: undefined;
|
|
75
|
+
percent_ins?: undefined;
|
|
76
|
+
query_chr?: undefined;
|
|
77
|
+
query_begin?: undefined;
|
|
78
|
+
query_end?: undefined;
|
|
79
|
+
query_remaining?: undefined;
|
|
80
|
+
orientation?: undefined;
|
|
81
|
+
matching_repeat_name?: undefined;
|
|
82
|
+
matching_repeat_class?: undefined;
|
|
83
|
+
matching_repeat_begin?: undefined;
|
|
84
|
+
matching_repeat_end?: undefined;
|
|
85
|
+
matching_repeat_remaining?: undefined;
|
|
86
|
+
repeat_id?: undefined;
|
|
87
|
+
} | {
|
|
88
|
+
uniqueId: string;
|
|
21
89
|
strand: number;
|
|
22
90
|
type: string;
|
|
23
91
|
refName: string;
|
|
24
|
-
subfeatures: MinimalFeature[];
|
|
92
|
+
subfeatures: import("./types").MinimalFeature[];
|
|
93
|
+
start: number;
|
|
94
|
+
end: number;
|
|
95
|
+
} | {
|
|
96
|
+
uniqueId: string;
|
|
97
|
+
score: number | undefined;
|
|
25
98
|
start: number;
|
|
26
99
|
end: number;
|
|
100
|
+
strand: any;
|
|
101
|
+
refName: string;
|
|
102
|
+
subfeatures: {
|
|
103
|
+
uniqueId: string;
|
|
104
|
+
start: number;
|
|
105
|
+
end: number;
|
|
106
|
+
refName: string;
|
|
107
|
+
type: string;
|
|
108
|
+
}[] | undefined;
|
|
27
109
|
};
|
|
28
|
-
export declare function
|
|
29
|
-
|
|
110
|
+
export declare function featureData2({ splitLine, refName, start, end, parser, uniqueId, scoreColumn, names, }: {
|
|
111
|
+
splitLine: string[];
|
|
112
|
+
refName: string;
|
|
30
113
|
start: number;
|
|
114
|
+
end: number;
|
|
115
|
+
parser: BED;
|
|
31
116
|
uniqueId: string;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
blockSizes: number[];
|
|
35
|
-
blockStarts?: number[];
|
|
117
|
+
scoreColumn: string;
|
|
118
|
+
names?: string[];
|
|
36
119
|
}): {
|
|
37
120
|
uniqueId: string;
|
|
121
|
+
refName: string;
|
|
38
122
|
start: number;
|
|
39
123
|
end: number;
|
|
124
|
+
code: string | undefined;
|
|
125
|
+
score: number;
|
|
126
|
+
strand: string | undefined;
|
|
127
|
+
color: string | undefined;
|
|
128
|
+
source: string | undefined;
|
|
129
|
+
n_valid_cov: string | undefined;
|
|
130
|
+
fraction_modified: string | undefined;
|
|
131
|
+
n_mod: string | undefined;
|
|
132
|
+
n_canonical: string | undefined;
|
|
133
|
+
n_other_mod: string | undefined;
|
|
134
|
+
n_delete: string | undefined;
|
|
135
|
+
n_fail: string | undefined;
|
|
136
|
+
n_diff: string | undefined;
|
|
137
|
+
n_nocall: string | undefined;
|
|
138
|
+
} | {
|
|
139
|
+
uniqueId: string;
|
|
140
|
+
refName: string;
|
|
141
|
+
start: number;
|
|
142
|
+
end: number;
|
|
143
|
+
bitsw_score: string | undefined;
|
|
144
|
+
percent_div: string | undefined;
|
|
145
|
+
percent_del: string | undefined;
|
|
146
|
+
percent_ins: string | undefined;
|
|
147
|
+
query_chr: string | undefined;
|
|
148
|
+
query_begin: string | undefined;
|
|
149
|
+
query_end: string | undefined;
|
|
150
|
+
query_remaining: string | undefined;
|
|
151
|
+
orientation: string | undefined;
|
|
152
|
+
matching_repeat_name: string | undefined;
|
|
153
|
+
matching_repeat_class: string | undefined;
|
|
154
|
+
matching_repeat_begin: string | undefined;
|
|
155
|
+
matching_repeat_end: string | undefined;
|
|
156
|
+
matching_repeat_remaining: string | undefined;
|
|
157
|
+
repeat_id: string | undefined;
|
|
158
|
+
description?: undefined;
|
|
159
|
+
} | {
|
|
160
|
+
uniqueId: string;
|
|
40
161
|
refName: string;
|
|
162
|
+
start: number;
|
|
163
|
+
end: number;
|
|
164
|
+
description: undefined;
|
|
165
|
+
bitsw_score?: undefined;
|
|
166
|
+
percent_div?: undefined;
|
|
167
|
+
percent_del?: undefined;
|
|
168
|
+
percent_ins?: undefined;
|
|
169
|
+
query_chr?: undefined;
|
|
170
|
+
query_begin?: undefined;
|
|
171
|
+
query_end?: undefined;
|
|
172
|
+
query_remaining?: undefined;
|
|
173
|
+
orientation?: undefined;
|
|
174
|
+
matching_repeat_name?: undefined;
|
|
175
|
+
matching_repeat_class?: undefined;
|
|
176
|
+
matching_repeat_begin?: undefined;
|
|
177
|
+
matching_repeat_end?: undefined;
|
|
178
|
+
matching_repeat_remaining?: undefined;
|
|
179
|
+
repeat_id?: undefined;
|
|
180
|
+
} | {
|
|
181
|
+
uniqueId: string;
|
|
182
|
+
strand: number;
|
|
41
183
|
type: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
184
|
+
refName: string;
|
|
185
|
+
subfeatures: import("./types").MinimalFeature[];
|
|
186
|
+
start: number;
|
|
187
|
+
end: number;
|
|
188
|
+
} | {
|
|
189
|
+
uniqueId: string;
|
|
190
|
+
score: number | undefined;
|
|
191
|
+
start: number;
|
|
192
|
+
end: number;
|
|
193
|
+
strand: any;
|
|
194
|
+
refName: string;
|
|
195
|
+
subfeatures: {
|
|
196
|
+
uniqueId: string;
|
|
197
|
+
start: number;
|
|
198
|
+
end: number;
|
|
199
|
+
refName: string;
|
|
200
|
+
type: string;
|
|
201
|
+
}[] | undefined;
|
|
202
|
+
};
|
|
203
|
+
export declare function arrayify(f?: string | number[]): number[] | undefined;
|