@jbrowse/plugin-gff3 2.11.0 → 2.11.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/Gff3Adapter/Gff3Adapter.d.ts +1 -1
- package/dist/Gff3Adapter/Gff3Adapter.js +2 -2
- package/dist/Gff3Adapter/index.d.ts +1 -2
- package/dist/Gff3Adapter/index.js +3 -2
- package/dist/Gff3TabixAdapter/Gff3TabixAdapter.d.ts +1 -1
- package/dist/Gff3TabixAdapter/Gff3TabixAdapter.js +2 -2
- package/dist/Gff3TabixAdapter/index.d.ts +1 -2
- package/dist/Gff3TabixAdapter/index.js +3 -2
- package/dist/GuessGff3/index.d.ts +1 -2
- package/dist/GuessGff3/index.js +3 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/esm/Gff3Adapter/Gff3Adapter.d.ts +1 -1
- package/esm/Gff3Adapter/Gff3Adapter.js +1 -1
- package/esm/Gff3Adapter/index.d.ts +1 -2
- package/esm/Gff3Adapter/index.js +2 -2
- package/esm/Gff3TabixAdapter/Gff3TabixAdapter.d.ts +1 -1
- package/esm/Gff3TabixAdapter/Gff3TabixAdapter.js +1 -1
- package/esm/Gff3TabixAdapter/index.d.ts +1 -2
- package/esm/Gff3TabixAdapter/index.js +2 -2
- package/esm/GuessGff3/index.d.ts +1 -2
- package/esm/GuessGff3/index.js +2 -2
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
|
@@ -2,7 +2,7 @@ import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters
|
|
|
2
2
|
import { NoAssemblyRegion } from '@jbrowse/core/util/types';
|
|
3
3
|
import IntervalTree from '@flatten-js/interval-tree';
|
|
4
4
|
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
5
|
-
export default class extends BaseFeatureDataAdapter {
|
|
5
|
+
export default class Gff3Adapter extends BaseFeatureDataAdapter {
|
|
6
6
|
protected gffFeatures?: Promise<{
|
|
7
7
|
header: string;
|
|
8
8
|
intervalTree: Record<string, IntervalTree>;
|
|
@@ -13,7 +13,7 @@ const gff_1 = __importDefault(require("@gmod/gff"));
|
|
|
13
13
|
function isGzip(buf) {
|
|
14
14
|
return buf[0] === 31 && buf[1] === 139 && buf[2] === 8;
|
|
15
15
|
}
|
|
16
|
-
class
|
|
16
|
+
class Gff3Adapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
17
17
|
async loadDataP() {
|
|
18
18
|
const pm = this.pluginManager;
|
|
19
19
|
const buf = await (0, io_1.openLocation)(this.getConf('gffLocation'), pm).readFile();
|
|
@@ -144,4 +144,4 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
144
144
|
}
|
|
145
145
|
freeResources( /* { region } */) { }
|
|
146
146
|
}
|
|
147
|
-
exports.default =
|
|
147
|
+
exports.default = Gff3Adapter;
|
|
@@ -28,11 +28,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
30
30
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
|
-
|
|
31
|
+
function Gff3AdapterF(pluginManager) {
|
|
32
32
|
pluginManager.addAdapterType(() => new pluggableElementTypes_1.AdapterType({
|
|
33
33
|
name: 'Gff3Adapter',
|
|
34
34
|
displayName: 'GFF3 adapter',
|
|
35
35
|
configSchema: configSchema_1.default,
|
|
36
36
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./Gff3Adapter'))).then(r => r.default),
|
|
37
37
|
}));
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
|
+
exports.default = Gff3AdapterF;
|
|
@@ -5,7 +5,7 @@ import { TabixIndexedFile } from '@gmod/tabix';
|
|
|
5
5
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
6
6
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
7
7
|
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
8
|
-
export default class extends BaseFeatureDataAdapter {
|
|
8
|
+
export default class Gff3TabixAdapter extends BaseFeatureDataAdapter {
|
|
9
9
|
protected gff: TabixIndexedFile;
|
|
10
10
|
protected dontRedispatch: string[];
|
|
11
11
|
constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
@@ -12,7 +12,7 @@ const simpleFeature_1 = __importDefault(require("@jbrowse/core/util/simpleFeatur
|
|
|
12
12
|
const tabix_1 = require("@gmod/tabix");
|
|
13
13
|
const gff_1 = __importDefault(require("@gmod/gff"));
|
|
14
14
|
const configuration_1 = require("@jbrowse/core/configuration");
|
|
15
|
-
class
|
|
15
|
+
class Gff3TabixAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
16
16
|
constructor(config, getSubAdapter, pluginManager) {
|
|
17
17
|
super(config, getSubAdapter, pluginManager);
|
|
18
18
|
const gffGzLocation = (0, configuration_1.readConfObject)(config, 'gffGzLocation');
|
|
@@ -186,4 +186,4 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
186
186
|
}
|
|
187
187
|
freeResources( /* { region } */) { }
|
|
188
188
|
}
|
|
189
|
-
exports.default =
|
|
189
|
+
exports.default = Gff3TabixAdapter;
|
|
@@ -28,11 +28,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const pluggableElementTypes_1 = require("@jbrowse/core/pluggableElementTypes");
|
|
30
30
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
|
-
|
|
31
|
+
function Gff3TabixAdapterF(pluginManager) {
|
|
32
32
|
pluginManager.addAdapterType(() => new pluggableElementTypes_1.AdapterType({
|
|
33
33
|
name: 'Gff3TabixAdapter',
|
|
34
34
|
displayName: 'GFF3 tabix adapter',
|
|
35
35
|
configSchema: configSchema_1.default,
|
|
36
36
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./Gff3TabixAdapter'))).then(r => r.default),
|
|
37
37
|
}));
|
|
38
|
-
}
|
|
38
|
+
}
|
|
39
|
+
exports.default = Gff3TabixAdapterF;
|
package/dist/GuessGff3/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tracks_1 = require("@jbrowse/core/util/tracks");
|
|
4
|
-
|
|
4
|
+
function GuessGff3F(pluginManager) {
|
|
5
5
|
pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', (adapterGuesser) => {
|
|
6
6
|
return (file, index, adapterHint) => {
|
|
7
7
|
const regexGuess = /\.gff3?\.b?gz$/i;
|
|
@@ -40,4 +40,5 @@ exports.default = (pluginManager) => {
|
|
|
40
40
|
return adapterGuesser(file, index, adapterHint);
|
|
41
41
|
};
|
|
42
42
|
});
|
|
43
|
-
}
|
|
43
|
+
}
|
|
44
|
+
exports.default = GuessGff3F;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const Plugin_1 = __importDefault(require("@jbrowse/core/Plugin"));
|
|
|
7
7
|
const Gff3TabixAdapter_1 = __importDefault(require("./Gff3TabixAdapter"));
|
|
8
8
|
const Gff3Adapter_1 = __importDefault(require("./Gff3Adapter"));
|
|
9
9
|
const GuessGff3_1 = __importDefault(require("./GuessGff3"));
|
|
10
|
-
class
|
|
10
|
+
class GFF3Plugin extends Plugin_1.default {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
this.name = 'GFF3Plugin';
|
|
@@ -18,4 +18,4 @@ class default_1 extends Plugin_1.default {
|
|
|
18
18
|
(0, GuessGff3_1.default)(pluginManager);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
exports.default =
|
|
21
|
+
exports.default = GFF3Plugin;
|
|
@@ -2,7 +2,7 @@ import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters
|
|
|
2
2
|
import { NoAssemblyRegion } from '@jbrowse/core/util/types';
|
|
3
3
|
import IntervalTree from '@flatten-js/interval-tree';
|
|
4
4
|
import { Feature } from '@jbrowse/core/util/simpleFeature';
|
|
5
|
-
export default class extends BaseFeatureDataAdapter {
|
|
5
|
+
export default class Gff3Adapter extends BaseFeatureDataAdapter {
|
|
6
6
|
protected gffFeatures?: Promise<{
|
|
7
7
|
header: string;
|
|
8
8
|
intervalTree: Record<string, IntervalTree>;
|
|
@@ -8,7 +8,7 @@ import gff from '@gmod/gff';
|
|
|
8
8
|
function isGzip(buf) {
|
|
9
9
|
return buf[0] === 31 && buf[1] === 139 && buf[2] === 8;
|
|
10
10
|
}
|
|
11
|
-
export default class extends BaseFeatureDataAdapter {
|
|
11
|
+
export default class Gff3Adapter extends BaseFeatureDataAdapter {
|
|
12
12
|
async loadDataP() {
|
|
13
13
|
const pm = this.pluginManager;
|
|
14
14
|
const buf = await openLocation(this.getConf('gffLocation'), pm).readFile();
|
package/esm/Gff3Adapter/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AdapterType } from '@jbrowse/core/pluggableElementTypes';
|
|
2
2
|
import configSchema from './configSchema';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function Gff3AdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'Gff3Adapter',
|
|
6
6
|
displayName: 'GFF3 adapter',
|
|
7
7
|
configSchema,
|
|
8
8
|
getAdapterClass: () => import('./Gff3Adapter').then(r => r.default),
|
|
9
9
|
}));
|
|
10
|
-
}
|
|
10
|
+
}
|
|
@@ -5,7 +5,7 @@ import { TabixIndexedFile } from '@gmod/tabix';
|
|
|
5
5
|
import { AnyConfigurationModel } from '@jbrowse/core/configuration';
|
|
6
6
|
import PluginManager from '@jbrowse/core/PluginManager';
|
|
7
7
|
import { getSubAdapterType } from '@jbrowse/core/data_adapters/dataAdapterCache';
|
|
8
|
-
export default class extends BaseFeatureDataAdapter {
|
|
8
|
+
export default class Gff3TabixAdapter extends BaseFeatureDataAdapter {
|
|
9
9
|
protected gff: TabixIndexedFile;
|
|
10
10
|
protected dontRedispatch: string[];
|
|
11
11
|
constructor(config: AnyConfigurationModel, getSubAdapter?: getSubAdapterType, pluginManager?: PluginManager);
|
|
@@ -7,7 +7,7 @@ import SimpleFeature from '@jbrowse/core/util/simpleFeature';
|
|
|
7
7
|
import { TabixIndexedFile } from '@gmod/tabix';
|
|
8
8
|
import gff from '@gmod/gff';
|
|
9
9
|
import { readConfObject, } from '@jbrowse/core/configuration';
|
|
10
|
-
export default class extends BaseFeatureDataAdapter {
|
|
10
|
+
export default class Gff3TabixAdapter extends BaseFeatureDataAdapter {
|
|
11
11
|
constructor(config, getSubAdapter, pluginManager) {
|
|
12
12
|
super(config, getSubAdapter, pluginManager);
|
|
13
13
|
const gffGzLocation = readConfObject(config, 'gffGzLocation');
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AdapterType } from '@jbrowse/core/pluggableElementTypes';
|
|
2
2
|
import configSchema from './configSchema';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function Gff3TabixAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'Gff3TabixAdapter',
|
|
6
6
|
displayName: 'GFF3 tabix adapter',
|
|
7
7
|
configSchema,
|
|
8
8
|
getAdapterClass: () => import('./Gff3TabixAdapter').then(r => r.default),
|
|
9
9
|
}));
|
|
10
|
-
}
|
|
10
|
+
}
|
package/esm/GuessGff3/index.d.ts
CHANGED
package/esm/GuessGff3/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { makeIndex, makeIndexType, getFileName, } from '@jbrowse/core/util/tracks';
|
|
2
|
-
export default (pluginManager)
|
|
2
|
+
export default function GuessGff3F(pluginManager) {
|
|
3
3
|
pluginManager.addToExtensionPoint('Core-guessAdapterForLocation', (adapterGuesser) => {
|
|
4
4
|
return (file, index, adapterHint) => {
|
|
5
5
|
const regexGuess = /\.gff3?\.b?gz$/i;
|
|
@@ -38,4 +38,4 @@ export default (pluginManager) => {
|
|
|
38
38
|
return adapterGuesser(file, index, adapterHint);
|
|
39
39
|
};
|
|
40
40
|
});
|
|
41
|
-
}
|
|
41
|
+
}
|
package/esm/index.d.ts
CHANGED
package/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import Plugin from '@jbrowse/core/Plugin';
|
|
|
2
2
|
import Gff3TabixAdapterF from './Gff3TabixAdapter';
|
|
3
3
|
import Gff3AdapterF from './Gff3Adapter';
|
|
4
4
|
import GuessGff3F from './GuessGff3';
|
|
5
|
-
export default class extends Plugin {
|
|
5
|
+
export default class GFF3Plugin extends Plugin {
|
|
6
6
|
constructor() {
|
|
7
7
|
super(...arguments);
|
|
8
8
|
this.name = 'GFF3Plugin';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-gff3",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "JBrowse 2 gff3.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"distModule": "esm/index.js",
|
|
56
56
|
"srcModule": "src/index.ts",
|
|
57
57
|
"module": "esm/index.js",
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "11b28d66d782eb06f92ccb993108bb6c3c82819e"
|
|
59
59
|
}
|