@apollo-annotation/shared 0.3.6 → 0.3.8

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.
Files changed (94) hide show
  1. package/dist/Changes/AddAssemblyAliasesChange.d.ts +16 -0
  2. package/dist/Changes/AddAssemblyAliasesChange.js +50 -0
  3. package/dist/Changes/AddAssemblyAliasesChange.js.map +1 -0
  4. package/dist/Changes/AddAssemblyAndFeaturesFromFileChange.js +1 -1
  5. package/dist/Changes/AddAssemblyAndFeaturesFromFileChange.js.map +1 -1
  6. package/dist/Changes/AddAssemblyFromFileChange.js +1 -1
  7. package/dist/Changes/AddAssemblyFromFileChange.js.map +1 -1
  8. package/dist/Changes/AddFeatureChange.d.ts +1 -0
  9. package/dist/Changes/AddFeatureChange.js +5 -25
  10. package/dist/Changes/AddFeatureChange.js.map +1 -1
  11. package/dist/Changes/AddRefSeqAliasesChange.js +2 -4
  12. package/dist/Changes/AddRefSeqAliasesChange.js.map +1 -1
  13. package/dist/Changes/DeleteFeatureChange.d.ts +9 -8
  14. package/dist/Changes/DeleteFeatureChange.js +37 -32
  15. package/dist/Changes/DeleteFeatureChange.js.map +1 -1
  16. package/dist/Changes/FeatureAttributeChange.d.ts +2 -1
  17. package/dist/Changes/FeatureAttributeChange.js +14 -6
  18. package/dist/Changes/FeatureAttributeChange.js.map +1 -1
  19. package/dist/Changes/ImportJBrowseConfigChange.d.ts +3 -0
  20. package/dist/Changes/ImportJBrowseConfigChange.js +17 -13
  21. package/dist/Changes/ImportJBrowseConfigChange.js.map +1 -1
  22. package/dist/Changes/LocationEndChange.js +40 -37
  23. package/dist/Changes/LocationEndChange.js.map +1 -1
  24. package/dist/Changes/LocationStartChange.js +40 -37
  25. package/dist/Changes/LocationStartChange.js.map +1 -1
  26. package/dist/Changes/MergeExonsChange.d.ts +29 -0
  27. package/dist/Changes/MergeExonsChange.js +114 -0
  28. package/dist/Changes/MergeExonsChange.js.map +1 -0
  29. package/dist/Changes/MergeTranscriptsChange.d.ts +34 -0
  30. package/dist/Changes/MergeTranscriptsChange.js +245 -0
  31. package/dist/Changes/MergeTranscriptsChange.js.map +1 -0
  32. package/dist/Changes/SplitExonChange.d.ts +33 -0
  33. package/dist/Changes/SplitExonChange.js +142 -0
  34. package/dist/Changes/SplitExonChange.js.map +1 -0
  35. package/dist/Changes/UndoMergeExonsChange.d.ts +27 -0
  36. package/dist/Changes/UndoMergeExonsChange.js +104 -0
  37. package/dist/Changes/UndoMergeExonsChange.js.map +1 -0
  38. package/dist/Changes/UndoMergeTranscriptsChange.d.ts +27 -0
  39. package/dist/Changes/UndoMergeTranscriptsChange.js +104 -0
  40. package/dist/Changes/UndoMergeTranscriptsChange.js.map +1 -0
  41. package/dist/Changes/UndoSplitExonChange.d.ts +32 -0
  42. package/dist/Changes/UndoSplitExonChange.js +111 -0
  43. package/dist/Changes/UndoSplitExonChange.js.map +1 -0
  44. package/dist/Changes/index.d.ts +21 -0
  45. package/dist/Changes/index.js +21 -0
  46. package/dist/Changes/index.js.map +1 -1
  47. package/dist/Checks/CDSCheck.d.ts +1 -1
  48. package/dist/Checks/CDSCheck.js +8 -9
  49. package/dist/Checks/CDSCheck.js.map +1 -1
  50. package/dist/Checks/TranscriptCheck.d.ts +9 -0
  51. package/dist/Checks/TranscriptCheck.js +109 -0
  52. package/dist/Checks/TranscriptCheck.js.map +1 -0
  53. package/dist/Checks/index.d.ts +1 -0
  54. package/dist/Checks/index.js +1 -0
  55. package/dist/Checks/index.js.map +1 -1
  56. package/dist/GFF3/annotationFeatureToGFF3.js +7 -1
  57. package/dist/GFF3/annotationFeatureToGFF3.js.map +1 -1
  58. package/dist/GFF3/gff3ToAnnotationFeature.test.js +1 -1
  59. package/dist/GFF3/gff3ToAnnotationFeature.test.js.map +1 -1
  60. package/dist/Validations/ParentChildValidation.js +3 -1
  61. package/dist/Validations/ParentChildValidation.js.map +1 -1
  62. package/dist/tsconfig.tsbuildinfo +1 -1
  63. package/dist/util.d.ts +5 -0
  64. package/dist/util.js +46 -0
  65. package/dist/util.js.map +1 -1
  66. package/package.json +7 -7
  67. package/src/Changes/AddAssemblyAliasesChange.ts +69 -0
  68. package/src/Changes/AddAssemblyAndFeaturesFromFileChange.ts +2 -1
  69. package/src/Changes/AddAssemblyFromFileChange.ts +1 -1
  70. package/src/Changes/AddFeatureChange.ts +5 -29
  71. package/src/Changes/AddRefSeqAliasesChange.ts +2 -4
  72. package/src/Changes/DeleteFeatureChange.ts +42 -36
  73. package/src/Changes/FeatureAttributeChange.ts +16 -7
  74. package/src/Changes/ImportJBrowseConfigChange.ts +33 -18
  75. package/src/Changes/LocationEndChange.ts +41 -50
  76. package/src/Changes/LocationStartChange.ts +41 -50
  77. package/src/Changes/MergeExonsChange.ts +201 -0
  78. package/src/Changes/MergeTranscriptsChange.ts +394 -0
  79. package/src/Changes/SplitExonChange.ts +249 -0
  80. package/src/Changes/UndoMergeExonsChange.ts +149 -0
  81. package/src/Changes/UndoMergeTranscriptsChange.ts +153 -0
  82. package/src/Changes/UndoSplitExonChange.ts +174 -0
  83. package/src/Changes/index.ts +21 -0
  84. package/src/Checks/CDSCheck.ts +10 -10
  85. package/src/Checks/TranscriptCheck.ts +139 -0
  86. package/src/Checks/index.ts +1 -0
  87. package/src/GFF3/annotationFeatureToGFF3.ts +7 -1
  88. package/src/GFF3/gff3ToAnnotationFeature.test.ts +1 -1
  89. package/src/Validations/ParentChildValidation.ts +3 -2
  90. package/src/util.ts +53 -0
  91. package/test_data/example01.json +20 -20
  92. package/test_data/example02.json +38 -38
  93. package/test_data/example04.json +57 -57
  94. package/test_data/gene_representations.gff3 +1054 -276
@@ -2,77 +2,77 @@
2
2
  "_id": "66e0555fae0bd7cfcd69912d",
3
3
  "refSeq": "chr1",
4
4
  "type": "gene",
5
- "min": 30999,
6
- "max": 39000,
5
+ "min": 60999,
6
+ "max": 69000,
7
7
  "strand": 1,
8
8
  "children": {
9
9
  "66e0555fae0bd7cfcd699120": {
10
10
  "_id": "66e0555fae0bd7cfcd699120",
11
11
  "refSeq": "chr1",
12
12
  "type": "mRNA",
13
- "min": 31049,
14
- "max": 39000,
13
+ "min": 61049,
14
+ "max": 69000,
15
15
  "strand": 1,
16
16
  "children": {
17
17
  "66e0555fae0bd7cfcd69911b": {
18
18
  "_id": "66e0555fae0bd7cfcd69911b",
19
19
  "refSeq": "chr1",
20
20
  "type": "exon",
21
- "min": 31049,
22
- "max": 31499,
21
+ "min": 61049,
22
+ "max": 61499,
23
23
  "strand": 1,
24
24
  "attributes": {
25
- "gff_id": ["exon40001"]
25
+ "gff_id": ["exon60001"]
26
26
  }
27
27
  },
28
28
  "66e0555fae0bd7cfcd69911c": {
29
29
  "_id": "66e0555fae0bd7cfcd69911c",
30
30
  "refSeq": "chr1",
31
31
  "type": "exon",
32
- "min": 32999,
33
- "max": 33902,
32
+ "min": 62999,
33
+ "max": 63902,
34
34
  "strand": 1,
35
35
  "attributes": {
36
- "gff_id": ["exon40003"]
36
+ "gff_id": ["exon60003"]
37
37
  }
38
38
  },
39
39
  "66e0555fae0bd7cfcd69911d": {
40
40
  "_id": "66e0555fae0bd7cfcd69911d",
41
41
  "refSeq": "chr1",
42
42
  "type": "exon",
43
- "min": 34999,
44
- "max": 35500,
43
+ "min": 64999,
44
+ "max": 65500,
45
45
  "strand": 1,
46
46
  "attributes": {
47
- "gff_id": ["exon40004"]
47
+ "gff_id": ["exon60004"]
48
48
  }
49
49
  },
50
50
  "66e0555fae0bd7cfcd69911e": {
51
51
  "_id": "66e0555fae0bd7cfcd69911e",
52
52
  "refSeq": "chr1",
53
53
  "type": "exon",
54
- "min": 36999,
55
- "max": 39000,
54
+ "min": 66999,
55
+ "max": 69000,
56
56
  "strand": 1,
57
57
  "attributes": {
58
- "gff_id": ["exon40005"]
58
+ "gff_id": ["exon60005"]
59
59
  }
60
60
  },
61
61
  "66e0555fae0bd7cfcd69911f": {
62
62
  "_id": "66e0555fae0bd7cfcd69911f",
63
63
  "refSeq": "chr1",
64
64
  "type": "CDS",
65
- "min": 31200,
66
- "max": 37600,
65
+ "min": 61200,
66
+ "max": 67600,
67
67
  "strand": 1,
68
68
  "attributes": {
69
- "gff_id": ["cds40001"],
69
+ "gff_id": ["cds60001"],
70
70
  "gff_name": ["edenprotein.1"]
71
71
  }
72
72
  }
73
73
  },
74
74
  "attributes": {
75
- "gff_id": ["mRNA40001"],
75
+ "gff_id": ["mRNA60001"],
76
76
  "gff_name": ["EDEN.1"]
77
77
  }
78
78
  },
@@ -80,58 +80,58 @@
80
80
  "_id": "66e0555fae0bd7cfcd699125",
81
81
  "refSeq": "chr1",
82
82
  "type": "mRNA",
83
- "min": 31049,
84
- "max": 39000,
83
+ "min": 61049,
84
+ "max": 69000,
85
85
  "strand": 1,
86
86
  "children": {
87
87
  "66e0555fae0bd7cfcd699121": {
88
88
  "_id": "66e0555fae0bd7cfcd699121",
89
89
  "refSeq": "chr1",
90
90
  "type": "exon",
91
- "min": 31049,
92
- "max": 31499,
91
+ "min": 61049,
92
+ "max": 61499,
93
93
  "strand": 1,
94
94
  "attributes": {
95
- "gff_id": ["exon40001"]
95
+ "gff_id": ["exon60001"]
96
96
  }
97
97
  },
98
98
  "66e0555fae0bd7cfcd699122": {
99
99
  "_id": "66e0555fae0bd7cfcd699122",
100
100
  "refSeq": "chr1",
101
101
  "type": "exon",
102
- "min": 34999,
103
- "max": 35500,
102
+ "min": 64999,
103
+ "max": 65500,
104
104
  "strand": 1,
105
105
  "attributes": {
106
- "gff_id": ["exon40004"]
106
+ "gff_id": ["exon60004"]
107
107
  }
108
108
  },
109
109
  "66e0555fae0bd7cfcd699123": {
110
110
  "_id": "66e0555fae0bd7cfcd699123",
111
111
  "refSeq": "chr1",
112
112
  "type": "exon",
113
- "min": 36999,
114
- "max": 39000,
113
+ "min": 66999,
114
+ "max": 69000,
115
115
  "strand": 1,
116
116
  "attributes": {
117
- "gff_id": ["exon40005"]
117
+ "gff_id": ["exon60005"]
118
118
  }
119
119
  },
120
120
  "66e0555fae0bd7cfcd699124": {
121
121
  "_id": "66e0555fae0bd7cfcd699124",
122
122
  "refSeq": "chr1",
123
123
  "type": "CDS",
124
- "min": 31200,
125
- "max": 37600,
124
+ "min": 61200,
125
+ "max": 67600,
126
126
  "strand": 1,
127
127
  "attributes": {
128
- "gff_id": ["cds40002"],
128
+ "gff_id": ["cds60002"],
129
129
  "gff_name": ["edenprotein.2"]
130
130
  }
131
131
  }
132
132
  },
133
133
  "attributes": {
134
- "gff_id": ["mRNA40002"],
134
+ "gff_id": ["mRNA60002"],
135
135
  "gff_name": ["EDEN.2"]
136
136
  }
137
137
  },
@@ -139,63 +139,63 @@
139
139
  "_id": "66e0555fae0bd7cfcd69912c",
140
140
  "refSeq": "chr1",
141
141
  "type": "mRNA",
142
- "min": 31299,
143
- "max": 39000,
142
+ "min": 61299,
143
+ "max": 69000,
144
144
  "strand": 1,
145
145
  "children": {
146
146
  "66e0555fae0bd7cfcd699126": {
147
147
  "_id": "66e0555fae0bd7cfcd699126",
148
148
  "refSeq": "chr1",
149
149
  "type": "exon",
150
- "min": 31299,
151
- "max": 31499,
150
+ "min": 61299,
151
+ "max": 61499,
152
152
  "strand": 1,
153
153
  "attributes": {
154
- "gff_id": ["exon40002"]
154
+ "gff_id": ["exon60002"]
155
155
  }
156
156
  },
157
157
  "66e0555fae0bd7cfcd699127": {
158
158
  "_id": "66e0555fae0bd7cfcd699127",
159
159
  "refSeq": "chr1",
160
160
  "type": "exon",
161
- "min": 32999,
162
- "max": 33902,
161
+ "min": 62999,
162
+ "max": 63902,
163
163
  "strand": 1,
164
164
  "attributes": {
165
- "gff_id": ["exon40003"]
165
+ "gff_id": ["exon60003"]
166
166
  }
167
167
  },
168
168
  "66e0555fae0bd7cfcd699128": {
169
169
  "_id": "66e0555fae0bd7cfcd699128",
170
170
  "refSeq": "chr1",
171
171
  "type": "exon",
172
- "min": 34999,
173
- "max": 35500,
172
+ "min": 64999,
173
+ "max": 65500,
174
174
  "strand": 1,
175
175
  "attributes": {
176
- "gff_id": ["exon40004"]
176
+ "gff_id": ["exon60004"]
177
177
  }
178
178
  },
179
179
  "66e0555fae0bd7cfcd699129": {
180
180
  "_id": "66e0555fae0bd7cfcd699129",
181
181
  "refSeq": "chr1",
182
182
  "type": "exon",
183
- "min": 36999,
184
- "max": 39000,
183
+ "min": 66999,
184
+ "max": 69000,
185
185
  "strand": 1,
186
186
  "attributes": {
187
- "gff_id": ["exon40005"]
187
+ "gff_id": ["exon60005"]
188
188
  }
189
189
  },
190
190
  "66e0555fae0bd7cfcd69912a": {
191
191
  "_id": "66e0555fae0bd7cfcd69912a",
192
192
  "refSeq": "chr1",
193
193
  "type": "CDS",
194
- "min": 33300,
195
- "max": 37600,
194
+ "min": 63300,
195
+ "max": 67600,
196
196
  "strand": 1,
197
197
  "attributes": {
198
- "gff_id": ["cds40003"],
198
+ "gff_id": ["cds60003"],
199
199
  "gff_name": ["edenprotein.3"]
200
200
  }
201
201
  },
@@ -203,23 +203,23 @@
203
203
  "_id": "66e0555fae0bd7cfcd69912b",
204
204
  "refSeq": "chr1",
205
205
  "type": "CDS",
206
- "min": 33390,
207
- "max": 37600,
206
+ "min": 63390,
207
+ "max": 67600,
208
208
  "strand": 1,
209
209
  "attributes": {
210
- "gff_id": ["cds40004"],
210
+ "gff_id": ["cds60004"],
211
211
  "gff_name": ["edenprotein.4"]
212
212
  }
213
213
  }
214
214
  },
215
215
  "attributes": {
216
- "gff_id": ["mRNA40003"],
216
+ "gff_id": ["mRNA60003"],
217
217
  "gff_name": ["EDEN.3"]
218
218
  }
219
219
  }
220
220
  },
221
221
  "attributes": {
222
- "gff_id": ["gene40001"],
222
+ "gff_id": ["gene60001"],
223
223
  "gff_name": ["EDEN"]
224
224
  }
225
225
  }