@apollo-annotation/mst 0.1.21 → 0.2.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/AnnotationFeatureModel.d.ts +17 -6
- package/dist/AnnotationFeatureModel.js +57 -11
- package/dist/AnnotationFeatureModel.js.map +1 -1
- package/dist/ApolloAssembly.d.ts +28 -42
- package/dist/ApolloRefSeq.d.ts +4 -6
- package/dist/CheckResult.d.ts +4 -6
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/AnnotationFeatureModel.ts +86 -15
- package/src/ApolloAssembly.ts +2 -2
- package/src/ApolloRefSeq.ts +2 -2
- package/src/CheckResult.ts +2 -2
- package/tsconfig.json +1 -1
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import { IAnyModelType, IMSTMap, Instance, SnapshotIn, SnapshotOrInstance } from 'mobx-state-tree';
|
|
2
|
+
export interface TranscriptPartLocation {
|
|
3
|
+
min: number;
|
|
4
|
+
max: number;
|
|
5
|
+
}
|
|
6
|
+
export interface TranscriptPartNonCoding extends TranscriptPartLocation {
|
|
7
|
+
type: 'fivePrimeUTR' | 'threePrimeUTR' | 'intron';
|
|
8
|
+
}
|
|
9
|
+
export interface TranscriptPartCoding extends TranscriptPartLocation {
|
|
10
|
+
type: 'CDS';
|
|
11
|
+
phase: 0 | 1 | 2;
|
|
12
|
+
}
|
|
13
|
+
export type TranscriptPart = TranscriptPartCoding | TranscriptPartNonCoding;
|
|
14
|
+
type TranscriptParts = TranscriptPart[];
|
|
2
15
|
export declare const AnnotationFeatureModel: import("mobx-state-tree").IModelType<{
|
|
3
16
|
_id: import("mobx-state-tree").ISimpleType<string>;
|
|
4
17
|
/** Unique ID of the reference sequence on which this feature is located */
|
|
@@ -50,11 +63,9 @@ export declare const AnnotationFeatureModel: import("mobx-state-tree").IModelTyp
|
|
|
50
63
|
*/
|
|
51
64
|
readonly maxWithChildren: number;
|
|
52
65
|
hasDescendant(featureId: string): boolean;
|
|
53
|
-
readonly
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
phase: 0 | 1 | 2;
|
|
57
|
-
}[][];
|
|
66
|
+
readonly transcriptParts: TranscriptParts[];
|
|
67
|
+
} & {
|
|
68
|
+
readonly cdsLocations: TranscriptPartCoding[][];
|
|
58
69
|
} & {
|
|
59
70
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
60
71
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -62,7 +73,7 @@ export declare const AnnotationFeatureModel: import("mobx-state-tree").IModelTyp
|
|
|
62
73
|
setRefSeq(refSeq: string): void;
|
|
63
74
|
setMin(min: number): void;
|
|
64
75
|
setMax(max: number): void;
|
|
65
|
-
setStrand(strand?: 1 | -1
|
|
76
|
+
setStrand(strand?: 1 | -1): void;
|
|
66
77
|
addChild(childFeature: AnnotationFeatureSnapshot): void;
|
|
67
78
|
deleteChild(childFeatureId: string): void;
|
|
68
79
|
} & {
|
|
@@ -96,7 +96,7 @@ exports.AnnotationFeatureModel = mobx_state_tree_1.types
|
|
|
96
96
|
}
|
|
97
97
|
return false;
|
|
98
98
|
},
|
|
99
|
-
get
|
|
99
|
+
get transcriptParts() {
|
|
100
100
|
if (self.type !== 'mRNA') {
|
|
101
101
|
throw new Error('Only features of type "mRNA" or equivalent can calculate CDS locations');
|
|
102
102
|
}
|
|
@@ -108,32 +108,78 @@ exports.AnnotationFeatureModel = mobx_state_tree_1.types
|
|
|
108
108
|
if (cdsChildren.length === 0) {
|
|
109
109
|
throw new Error('no CDS in mRNA');
|
|
110
110
|
}
|
|
111
|
-
const
|
|
111
|
+
const transcriptParts = [];
|
|
112
112
|
for (const cds of cdsChildren) {
|
|
113
113
|
const { max: cdsMax, min: cdsMin } = cds;
|
|
114
|
-
const
|
|
114
|
+
const parts = [];
|
|
115
|
+
let hasIntersected = false;
|
|
116
|
+
const exonLocations = [];
|
|
115
117
|
for (const [, child] of children) {
|
|
116
|
-
if (child.type
|
|
117
|
-
|
|
118
|
+
if (child.type === 'exon') {
|
|
119
|
+
exonLocations.push({ min: child.min, max: child.max });
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
exonLocations.sort(({ min: a }, { min: b }) => a - b);
|
|
123
|
+
for (const child of exonLocations) {
|
|
124
|
+
const lastPart = parts.at(-1);
|
|
125
|
+
if (lastPart) {
|
|
126
|
+
parts.push({ min: lastPart.max, max: child.min, type: 'intron' });
|
|
118
127
|
}
|
|
119
128
|
const [start, end] = (0, util_1.intersection2)(cdsMin, cdsMax, child.min, child.max);
|
|
129
|
+
let utrType;
|
|
130
|
+
if (hasIntersected) {
|
|
131
|
+
utrType = self.strand === 1 ? 'threePrimeUTR' : 'fivePrimeUTR';
|
|
132
|
+
}
|
|
133
|
+
else {
|
|
134
|
+
utrType = self.strand === 1 ? 'fivePrimeUTR' : 'threePrimeUTR';
|
|
135
|
+
}
|
|
120
136
|
if (start !== undefined && end !== undefined) {
|
|
121
|
-
|
|
137
|
+
hasIntersected = true;
|
|
138
|
+
if (start === child.min && end === child.max) {
|
|
139
|
+
parts.push({ min: start, max: end, phase: 0, type: 'CDS' });
|
|
140
|
+
}
|
|
141
|
+
else if (start === child.min) {
|
|
142
|
+
parts.push({ min: start, max: end, phase: 0, type: 'CDS' }, { min: end, max: child.max, type: utrType });
|
|
143
|
+
}
|
|
144
|
+
else if (end === child.max) {
|
|
145
|
+
parts.push({ min: child.min, max: start, type: utrType }, { min: start, max: end, phase: 0, type: 'CDS' });
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
parts.push({ min: child.min, max: start, type: utrType }, { min: start, max: end, phase: 0, type: 'CDS' }, {
|
|
149
|
+
min: end,
|
|
150
|
+
max: child.max,
|
|
151
|
+
type: utrType === 'fivePrimeUTR'
|
|
152
|
+
? 'threePrimeUTR'
|
|
153
|
+
: 'fivePrimeUTR',
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
else {
|
|
158
|
+
parts.push({ min: child.min, max: child.max, type: utrType });
|
|
122
159
|
}
|
|
123
160
|
}
|
|
124
|
-
|
|
161
|
+
parts.sort(({ min: a }, { min: b }) => a - b);
|
|
125
162
|
if (self.strand === -1) {
|
|
126
|
-
|
|
163
|
+
parts.reverse();
|
|
127
164
|
}
|
|
128
165
|
let nextPhase = 0;
|
|
129
|
-
const
|
|
166
|
+
const phasedParts = parts.map((loc) => {
|
|
167
|
+
if (loc.type !== 'CDS') {
|
|
168
|
+
return loc;
|
|
169
|
+
}
|
|
130
170
|
const phase = nextPhase;
|
|
131
171
|
nextPhase = ((3 - ((loc.max - loc.min - phase + 3) % 3)) % 3);
|
|
132
172
|
return { ...loc, phase };
|
|
133
173
|
});
|
|
134
|
-
|
|
174
|
+
transcriptParts.push(phasedParts);
|
|
135
175
|
}
|
|
136
|
-
return
|
|
176
|
+
return transcriptParts;
|
|
177
|
+
},
|
|
178
|
+
}))
|
|
179
|
+
.views((self) => ({
|
|
180
|
+
get cdsLocations() {
|
|
181
|
+
const { transcriptParts } = self;
|
|
182
|
+
return transcriptParts.map((transcript) => transcript.filter((transcriptPart) => transcriptPart.type === 'CDS'));
|
|
137
183
|
},
|
|
138
184
|
}))
|
|
139
185
|
.actions((self) => ({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotationFeatureModel.js","sourceRoot":"","sources":["../src/AnnotationFeatureModel.ts"],"names":[],"mappings":";;;AAAA,6CAAkD;AAClD,qDAUwB;AAExB,wBAAkC;AAElC,MAAM,qBAAqB,GAAG,uBAAK,CAAC,IAAI,CACtC,GAAkB,EAAE,CAAC,8BAAsB,CAC5C,CAAA;
|
|
1
|
+
{"version":3,"file":"AnnotationFeatureModel.js","sourceRoot":"","sources":["../src/AnnotationFeatureModel.ts"],"names":[],"mappings":";;;AAAA,6CAAkD;AAClD,qDAUwB;AAExB,wBAAkC;AAElC,MAAM,qBAAqB,GAAG,uBAAK,CAAC,IAAI,CACtC,GAAkB,EAAE,CAAC,8BAAsB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AAE,8BAAsB,CAAC,CAAA;QACxD,CAAC;QAAC,MAAM,CAAC;YACP,OAAO;QACT,CAAC;QACD,OAAO,MAAM,CAAA;IACf,CAAC;IACD,IAAI,eAAe;QACjB,IAAI,OAAO,GAAG,IAAI,CAAA;QAClB,IAAI,MAAM,CAAA;QACV,GAAG,CAAC;YACF,IAAI,CAAC;gBACH,MAAM,GAAG,IAAA,iCAAe,EAAC,OAAO,EAAE,8BAAsB,CAAC,CAAA;gBACzD,OAAO,GAAG,MAAM,CAAA;YAClB,CAAC;YAAC,MAAM,CAAC;gBACP,MAAM,GAAG,SAAS,CAAA;YACpB,CAAC;QACH,CAAC,QAAQ,MAAM,EAAC;QAChB,OAAO,OAA4B,CAAA;IACrC,CAAC;IACD,IAAI,UAAU;QACZ,OAAO,IAAA,iCAAe,EAAC,IAAI,EAAE,iBAAc,CAAC,CAAC,GAAG,CAAA;IAClD,CAAC;CACF,CAAC,CAAC,CAAA"}
|
package/dist/ApolloAssembly.d.ts
CHANGED
|
@@ -21,11 +21,9 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
21
21
|
readonly minWithChildren: number;
|
|
22
22
|
readonly maxWithChildren: number;
|
|
23
23
|
hasDescendant(featureId: string): boolean;
|
|
24
|
-
readonly
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
phase: 0 | 1 | 2;
|
|
28
|
-
}[][];
|
|
24
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
25
|
+
} & {
|
|
26
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
29
27
|
} & {
|
|
30
28
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
31
29
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -33,7 +31,7 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
33
31
|
setRefSeq(refSeq: string): void;
|
|
34
32
|
setMin(min: number): void;
|
|
35
33
|
setMax(max: number): void;
|
|
36
|
-
setStrand(strand?: 1 | -1
|
|
34
|
+
setStrand(strand?: 1 | -1): void;
|
|
37
35
|
addChild(childFeature: import("./AnnotationFeatureModel").AnnotationFeatureSnapshot): void;
|
|
38
36
|
deleteChild(childFeatureId: string): void;
|
|
39
37
|
} & {
|
|
@@ -84,11 +82,9 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
84
82
|
readonly minWithChildren: number;
|
|
85
83
|
readonly maxWithChildren: number;
|
|
86
84
|
hasDescendant(featureId: string): boolean;
|
|
87
|
-
readonly
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
phase: 0 | 1 | 2;
|
|
91
|
-
}[][];
|
|
85
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
86
|
+
} & {
|
|
87
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
92
88
|
} & {
|
|
93
89
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
94
90
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -96,7 +92,7 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
96
92
|
setRefSeq(refSeq: string): void;
|
|
97
93
|
setMin(min: number): void;
|
|
98
94
|
setMax(max: number): void;
|
|
99
|
-
setStrand(strand?: 1 | -1
|
|
95
|
+
setStrand(strand?: 1 | -1): void;
|
|
100
96
|
addChild(childFeature: import("./AnnotationFeatureModel").AnnotationFeatureSnapshot): void;
|
|
101
97
|
deleteChild(childFeatureId: string): void;
|
|
102
98
|
} & {
|
|
@@ -126,11 +122,9 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
126
122
|
readonly minWithChildren: number;
|
|
127
123
|
readonly maxWithChildren: number;
|
|
128
124
|
hasDescendant(featureId: string): boolean;
|
|
129
|
-
readonly
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
phase: 0 | 1 | 2;
|
|
133
|
-
}[][];
|
|
125
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
126
|
+
} & {
|
|
127
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
134
128
|
} & {
|
|
135
129
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
136
130
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -138,7 +132,7 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
138
132
|
setRefSeq(refSeq: string): void;
|
|
139
133
|
setMin(min: number): void;
|
|
140
134
|
setMax(max: number): void;
|
|
141
|
-
setStrand(strand?: 1 | -1
|
|
135
|
+
setStrand(strand?: 1 | -1): void;
|
|
142
136
|
addChild(childFeature: import("./AnnotationFeatureModel").AnnotationFeatureSnapshot): void;
|
|
143
137
|
deleteChild(childFeatureId: string): void;
|
|
144
138
|
} & {
|
|
@@ -189,11 +183,9 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
189
183
|
readonly minWithChildren: number;
|
|
190
184
|
readonly maxWithChildren: number;
|
|
191
185
|
hasDescendant(featureId: string): boolean;
|
|
192
|
-
readonly
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
phase: 0 | 1 | 2;
|
|
196
|
-
}[][];
|
|
186
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
187
|
+
} & {
|
|
188
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
197
189
|
} & {
|
|
198
190
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
199
191
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -201,7 +193,7 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
201
193
|
setRefSeq(refSeq: string): void;
|
|
202
194
|
setMin(min: number): void;
|
|
203
195
|
setMax(max: number): void;
|
|
204
|
-
setStrand(strand?: 1 | -1
|
|
196
|
+
setStrand(strand?: 1 | -1): void;
|
|
205
197
|
addChild(childFeature: import("./AnnotationFeatureModel").AnnotationFeatureSnapshot): void;
|
|
206
198
|
deleteChild(childFeatureId: string): void;
|
|
207
199
|
} & {
|
|
@@ -250,11 +242,9 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
250
242
|
readonly minWithChildren: number;
|
|
251
243
|
readonly maxWithChildren: number;
|
|
252
244
|
hasDescendant(featureId: string): boolean;
|
|
253
|
-
readonly
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
phase: 0 | 1 | 2;
|
|
257
|
-
}[][];
|
|
245
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
246
|
+
} & {
|
|
247
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
258
248
|
} & {
|
|
259
249
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
260
250
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -262,7 +252,7 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
262
252
|
setRefSeq(refSeq: string): void;
|
|
263
253
|
setMin(min: number): void;
|
|
264
254
|
setMax(max: number): void;
|
|
265
|
-
setStrand(strand?: 1 | -1
|
|
255
|
+
setStrand(strand?: 1 | -1): void;
|
|
266
256
|
addChild(childFeature: import("./AnnotationFeatureModel").AnnotationFeatureSnapshot): void;
|
|
267
257
|
deleteChild(childFeatureId: string): void;
|
|
268
258
|
} & {
|
|
@@ -292,11 +282,9 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
292
282
|
readonly minWithChildren: number;
|
|
293
283
|
readonly maxWithChildren: number;
|
|
294
284
|
hasDescendant(featureId: string): boolean;
|
|
295
|
-
readonly
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
phase: 0 | 1 | 2;
|
|
299
|
-
}[][];
|
|
285
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
286
|
+
} & {
|
|
287
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
300
288
|
} & {
|
|
301
289
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
302
290
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -304,7 +292,7 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
304
292
|
setRefSeq(refSeq: string): void;
|
|
305
293
|
setMin(min: number): void;
|
|
306
294
|
setMax(max: number): void;
|
|
307
|
-
setStrand(strand?: 1 | -1
|
|
295
|
+
setStrand(strand?: 1 | -1): void;
|
|
308
296
|
addChild(childFeature: import("./AnnotationFeatureModel").AnnotationFeatureSnapshot): void;
|
|
309
297
|
deleteChild(childFeatureId: string): void;
|
|
310
298
|
} & {
|
|
@@ -355,11 +343,9 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
355
343
|
readonly minWithChildren: number;
|
|
356
344
|
readonly maxWithChildren: number;
|
|
357
345
|
hasDescendant(featureId: string): boolean;
|
|
358
|
-
readonly
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
phase: 0 | 1 | 2;
|
|
362
|
-
}[][];
|
|
346
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
347
|
+
} & {
|
|
348
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
363
349
|
} & {
|
|
364
350
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
365
351
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -367,7 +353,7 @@ export declare const ApolloAssembly: import("mobx-state-tree").IModelType<{
|
|
|
367
353
|
setRefSeq(refSeq: string): void;
|
|
368
354
|
setMin(min: number): void;
|
|
369
355
|
setMax(max: number): void;
|
|
370
|
-
setStrand(strand?: 1 | -1
|
|
356
|
+
setStrand(strand?: 1 | -1): void;
|
|
371
357
|
addChild(childFeature: import("./AnnotationFeatureModel").AnnotationFeatureSnapshot): void;
|
|
372
358
|
deleteChild(childFeatureId: string): void;
|
|
373
359
|
} & {
|
package/dist/ApolloRefSeq.d.ts
CHANGED
|
@@ -24,11 +24,9 @@ export declare const ApolloRefSeq: import("mobx-state-tree").IModelType<{
|
|
|
24
24
|
readonly minWithChildren: number;
|
|
25
25
|
readonly maxWithChildren: number;
|
|
26
26
|
hasDescendant(featureId: string): boolean;
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
phase: 0 | 1 | 2;
|
|
31
|
-
}[][];
|
|
27
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
28
|
+
} & {
|
|
29
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
32
30
|
} & {
|
|
33
31
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
34
32
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -36,7 +34,7 @@ export declare const ApolloRefSeq: import("mobx-state-tree").IModelType<{
|
|
|
36
34
|
setRefSeq(refSeq: string): void;
|
|
37
35
|
setMin(min: number): void;
|
|
38
36
|
setMax(max: number): void;
|
|
39
|
-
setStrand(strand?: 1 | -1
|
|
37
|
+
setStrand(strand?: 1 | -1): void;
|
|
40
38
|
addChild(childFeature: AnnotationFeatureSnapshot): void;
|
|
41
39
|
deleteChild(childFeatureId: string): void;
|
|
42
40
|
} & {
|
package/dist/CheckResult.d.ts
CHANGED
|
@@ -17,11 +17,9 @@ export declare const CheckResult: import("mobx-state-tree").IModelType<{
|
|
|
17
17
|
readonly minWithChildren: number;
|
|
18
18
|
readonly maxWithChildren: number;
|
|
19
19
|
hasDescendant(featureId: string): boolean;
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
phase: 0 | 1 | 2;
|
|
24
|
-
}[][];
|
|
20
|
+
readonly transcriptParts: import("./AnnotationFeatureModel").TranscriptPart[][];
|
|
21
|
+
} & {
|
|
22
|
+
readonly cdsLocations: import("./AnnotationFeatureModel").TranscriptPartCoding[][];
|
|
25
23
|
} & {
|
|
26
24
|
setAttributes(attributes: Map<string, string[]>): void;
|
|
27
25
|
setAttribute(key: string, value: string[]): void;
|
|
@@ -29,7 +27,7 @@ export declare const CheckResult: import("mobx-state-tree").IModelType<{
|
|
|
29
27
|
setRefSeq(refSeq: string): void;
|
|
30
28
|
setMin(min: number): void;
|
|
31
29
|
setMax(max: number): void;
|
|
32
|
-
setStrand(strand?: 1 | -1
|
|
30
|
+
setStrand(strand?: 1 | -1): void;
|
|
33
31
|
addChild(childFeature: import("./AnnotationFeatureModel").AnnotationFeatureSnapshot): void;
|
|
34
32
|
deleteChild(childFeatureId: string): void;
|
|
35
33
|
} & {
|