@apollo-annotation/shared 0.3.9 → 0.3.10
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/Changes/AddFeatureChange.js +9 -2
- package/dist/Changes/AddFeatureChange.js.map +1 -1
- package/dist/Changes/FromFileBaseChange.d.ts +2 -0
- package/dist/Changes/FromFileBaseChange.js +20 -5
- package/dist/Changes/FromFileBaseChange.js.map +1 -1
- package/dist/GFF3/annotationFeatureToGFF3.test.js +19 -5
- package/dist/GFF3/annotationFeatureToGFF3.test.js.map +1 -1
- package/dist/GFF3/gff3ToAnnotationFeature.d.ts +1 -1
- package/dist/GFF3/gff3ToAnnotationFeature.js +8 -11
- package/dist/GFF3/gff3ToAnnotationFeature.js.map +1 -1
- package/dist/GFF3/gff3ToAnnotationFeature.test.d.ts +1 -2
- package/dist/GFF3/gff3ToAnnotationFeature.test.js +23 -96
- package/dist/GFF3/gff3ToAnnotationFeature.test.js.map +1 -1
- package/dist/GFF3/testUtil.d.ts +6 -0
- package/dist/GFF3/testUtil.js +24 -0
- package/dist/GFF3/testUtil.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
- package/src/Changes/AddFeatureChange.ts +10 -2
- package/src/Changes/FromFileBaseChange.ts +22 -10
- package/src/GFF3/annotationFeatureToGFF3.test.ts +24 -2
- package/src/GFF3/gff3ToAnnotationFeature.test.ts +24 -95
- package/src/GFF3/gff3ToAnnotationFeature.ts +6 -15
- package/src/GFF3/testUtil.ts +25 -0
- package/test_data/gene_with_two_cds.gff3 +6 -0
- package/test_data/gene_with_two_cds.json +69 -0
- package/test_data/single_feature_no_children.gff3 +1 -0
- package/test_data/single_feature_no_children.json +14 -0
- package/test_data/single_feature_two_children.gff3 +3 -0
- package/test_data/single_feature_two_children.json +44 -0
- package/test_data/two_cds.gff3 +0 -9
- package/test_data/two_cds.json +0 -67
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.testCases = void 0;
|
|
4
|
+
exports.readAnnotationFeatureSnapshot = readAnnotationFeatureSnapshot;
|
|
5
|
+
const node_fs_1 = require("node:fs");
|
|
6
|
+
function readAnnotationFeatureSnapshot(fn) {
|
|
7
|
+
const lines = (0, node_fs_1.readFileSync)(fn).toString();
|
|
8
|
+
return JSON.parse(lines);
|
|
9
|
+
}
|
|
10
|
+
exports.testCases = [
|
|
11
|
+
{
|
|
12
|
+
filenameStem: 'single_feature_no_children',
|
|
13
|
+
description: 'there is a single feature with no children',
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
filenameStem: 'single_feature_two_children',
|
|
17
|
+
description: 'there is a single feature with two children',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
filenameStem: 'gene_with_two_cds',
|
|
21
|
+
description: 'Gene with two CDS',
|
|
22
|
+
},
|
|
23
|
+
];
|
|
24
|
+
//# sourceMappingURL=testUtil.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testUtil.js","sourceRoot":"","sources":["../../src/GFF3/testUtil.ts"],"names":[],"mappings":";;;AAIA,sEAKC;AATD,qCAAsC;AAItC,SAAgB,6BAA6B,CAC3C,EAAU;IAEV,MAAM,KAAK,GAAG,IAAA,sBAAY,EAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAA;IACzC,OAAO,IAAI,CAAC,KAAK,CAAC,KAAK,CAA8B,CAAA;AACvD,CAAC;AAEY,QAAA,SAAS,GAAoD;IACxE;QACE,YAAY,EAAE,4BAA4B;QAC1C,WAAW,EAAE,4CAA4C;KAC1D;IACD;QACE,YAAY,EAAE,6BAA6B;QAC3C,WAAW,EAAE,6CAA6C;KAC3D;IACD;QACE,YAAY,EAAE,mBAAmB;QACjC,WAAW,EAAE,mBAAmB;KACjC;CACF,CAAA"}
|