@jbrowse/plugin-gccontent 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/GCContentAdapter/GCContentAdapter.d.ts +1 -1
- package/dist/GCContentAdapter/GCContentAdapter.js +4 -3
- package/dist/GCContentAdapter/index.d.ts +1 -2
- package/dist/GCContentAdapter/index.js +3 -2
- package/dist/GCContentTrack/index.d.ts +1 -2
- package/dist/GCContentTrack/index.js +3 -2
- package/dist/LinearGCContentDisplay/index.d.ts +1 -2
- package/dist/LinearGCContentDisplay/index.js +3 -2
- package/esm/GCContentAdapter/GCContentAdapter.d.ts +1 -1
- package/esm/GCContentAdapter/GCContentAdapter.js +4 -3
- package/esm/GCContentAdapter/index.d.ts +1 -2
- package/esm/GCContentAdapter/index.js +2 -2
- package/esm/GCContentTrack/index.d.ts +1 -2
- package/esm/GCContentTrack/index.js +2 -2
- package/esm/LinearGCContentDisplay/index.d.ts +1 -2
- package/esm/LinearGCContentDisplay/index.js +2 -2
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { Feature, Region } from '@jbrowse/core/util';
|
|
3
|
-
export default class extends BaseFeatureDataAdapter {
|
|
3
|
+
export default class GCContentAdapter extends BaseFeatureDataAdapter {
|
|
4
4
|
private gcMode;
|
|
5
5
|
static capabilities: string[];
|
|
6
6
|
configure(): Promise<BaseFeatureDataAdapter>;
|
|
@@ -5,7 +5,7 @@ const rxjs_1 = require("rxjs");
|
|
|
5
5
|
const rxjs_2 = require("@jbrowse/core/util/rxjs");
|
|
6
6
|
const util_1 = require("@jbrowse/core/util");
|
|
7
7
|
const operators_1 = require("rxjs/operators");
|
|
8
|
-
class
|
|
8
|
+
class GCContentAdapter extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
9
9
|
constructor() {
|
|
10
10
|
super(...arguments);
|
|
11
11
|
this.gcMode = 'content';
|
|
@@ -70,6 +70,7 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
70
70
|
}
|
|
71
71
|
observer.next(new util_1.SimpleFeature({
|
|
72
72
|
uniqueId: `${this.id}_${pos + i}`,
|
|
73
|
+
refName: query.refName,
|
|
73
74
|
start: pos + i,
|
|
74
75
|
end: pos + i + windowDelta,
|
|
75
76
|
score,
|
|
@@ -85,5 +86,5 @@ class default_1 extends BaseAdapter_1.BaseFeatureDataAdapter {
|
|
|
85
86
|
*/
|
|
86
87
|
freeResources( /* { region } */) { }
|
|
87
88
|
}
|
|
88
|
-
|
|
89
|
-
exports.default =
|
|
89
|
+
GCContentAdapter.capabilities = ['hasLocalStats'];
|
|
90
|
+
exports.default = GCContentAdapter;
|
|
@@ -28,7 +28,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
const AdapterType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/AdapterType"));
|
|
30
30
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
31
|
-
|
|
31
|
+
function GCContentAdapterF(pluginManager) {
|
|
32
32
|
pluginManager.addAdapterType(() => new AdapterType_1.default({
|
|
33
33
|
name: 'GCContentAdapter',
|
|
34
34
|
displayName: 'GC content adapter',
|
|
@@ -38,4 +38,5 @@ exports.default = (pluginManager) => {
|
|
|
38
38
|
configSchema: (0, configSchema_1.default)(pluginManager),
|
|
39
39
|
getAdapterClass: () => Promise.resolve().then(() => __importStar(require('./GCContentAdapter'))).then(r => r.default),
|
|
40
40
|
}));
|
|
41
|
-
}
|
|
41
|
+
}
|
|
42
|
+
exports.default = GCContentAdapterF;
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const TrackType_1 = __importDefault(require("@jbrowse/core/pluggableElementTypes/TrackType"));
|
|
7
7
|
const models_1 = require("@jbrowse/core/pluggableElementTypes/models");
|
|
8
8
|
const configSchema_1 = __importDefault(require("./configSchema"));
|
|
9
|
-
|
|
9
|
+
function GCContentTrackF(pm) {
|
|
10
10
|
pm.addTrackType(() => {
|
|
11
11
|
const configSchema = (0, configSchema_1.default)(pm);
|
|
12
12
|
return new TrackType_1.default({
|
|
@@ -16,4 +16,5 @@ exports.default = (pm) => {
|
|
|
16
16
|
stateModel: (0, models_1.createBaseTrackModel)(pm, 'GCContentTrack', configSchema),
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
|
-
}
|
|
19
|
+
}
|
|
20
|
+
exports.default = GCContentTrackF;
|
|
@@ -9,7 +9,7 @@ const config1_1 = __importDefault(require("./config1"));
|
|
|
9
9
|
const config2_1 = __importDefault(require("./config2"));
|
|
10
10
|
const stateModel1_1 = __importDefault(require("./stateModel1"));
|
|
11
11
|
const stateModel2_1 = __importDefault(require("./stateModel2"));
|
|
12
|
-
|
|
12
|
+
function LinearGCContentDisplayF(pluginManager) {
|
|
13
13
|
pluginManager.addDisplayType(() => {
|
|
14
14
|
const configSchema = (0, config1_1.default)(pluginManager);
|
|
15
15
|
const stateModel = (0, stateModel1_1.default)(pluginManager, configSchema);
|
|
@@ -36,4 +36,5 @@ exports.default = (pluginManager) => {
|
|
|
36
36
|
ReactComponent: plugin_wiggle_1.LinearWiggleDisplayReactComponent,
|
|
37
37
|
});
|
|
38
38
|
});
|
|
39
|
-
}
|
|
39
|
+
}
|
|
40
|
+
exports.default = LinearGCContentDisplayF;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseFeatureDataAdapter, BaseOptions } from '@jbrowse/core/data_adapters/BaseAdapter';
|
|
2
2
|
import { Feature, Region } from '@jbrowse/core/util';
|
|
3
|
-
export default class extends BaseFeatureDataAdapter {
|
|
3
|
+
export default class GCContentAdapter extends BaseFeatureDataAdapter {
|
|
4
4
|
private gcMode;
|
|
5
5
|
static capabilities: string[];
|
|
6
6
|
configure(): Promise<BaseFeatureDataAdapter>;
|
|
@@ -3,7 +3,7 @@ import { firstValueFrom } from 'rxjs';
|
|
|
3
3
|
import { ObservableCreate } from '@jbrowse/core/util/rxjs';
|
|
4
4
|
import { SimpleFeature } from '@jbrowse/core/util';
|
|
5
5
|
import { toArray } from 'rxjs/operators';
|
|
6
|
-
class
|
|
6
|
+
class GCContentAdapter extends BaseFeatureDataAdapter {
|
|
7
7
|
constructor() {
|
|
8
8
|
super(...arguments);
|
|
9
9
|
this.gcMode = 'content';
|
|
@@ -68,6 +68,7 @@ class default_1 extends BaseFeatureDataAdapter {
|
|
|
68
68
|
}
|
|
69
69
|
observer.next(new SimpleFeature({
|
|
70
70
|
uniqueId: `${this.id}_${pos + i}`,
|
|
71
|
+
refName: query.refName,
|
|
71
72
|
start: pos + i,
|
|
72
73
|
end: pos + i + windowDelta,
|
|
73
74
|
score,
|
|
@@ -83,5 +84,5 @@ class default_1 extends BaseFeatureDataAdapter {
|
|
|
83
84
|
*/
|
|
84
85
|
freeResources( /* { region } */) { }
|
|
85
86
|
}
|
|
86
|
-
|
|
87
|
-
export default
|
|
87
|
+
GCContentAdapter.capabilities = ['hasLocalStats'];
|
|
88
|
+
export default GCContentAdapter;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import AdapterType from '@jbrowse/core/pluggableElementTypes/AdapterType';
|
|
2
2
|
import configSchemaF from './configSchema';
|
|
3
|
-
export default (pluginManager)
|
|
3
|
+
export default function GCContentAdapterF(pluginManager) {
|
|
4
4
|
pluginManager.addAdapterType(() => new AdapterType({
|
|
5
5
|
name: 'GCContentAdapter',
|
|
6
6
|
displayName: 'GC content adapter',
|
|
@@ -10,4 +10,4 @@ export default (pluginManager) => {
|
|
|
10
10
|
configSchema: configSchemaF(pluginManager),
|
|
11
11
|
getAdapterClass: () => import('./GCContentAdapter').then(r => r.default),
|
|
12
12
|
}));
|
|
13
|
-
}
|
|
13
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import TrackType from '@jbrowse/core/pluggableElementTypes/TrackType';
|
|
2
2
|
import { createBaseTrackModel } from '@jbrowse/core/pluggableElementTypes/models';
|
|
3
3
|
import configSchemaF from './configSchema';
|
|
4
|
-
export default (pm)
|
|
4
|
+
export default function GCContentTrackF(pm) {
|
|
5
5
|
pm.addTrackType(() => {
|
|
6
6
|
const configSchema = configSchemaF(pm);
|
|
7
7
|
return new TrackType({
|
|
@@ -11,4 +11,4 @@ export default (pm) => {
|
|
|
11
11
|
stateModel: createBaseTrackModel(pm, 'GCContentTrack', configSchema),
|
|
12
12
|
});
|
|
13
13
|
});
|
|
14
|
-
}
|
|
14
|
+
}
|
|
@@ -4,7 +4,7 @@ import configSchemaFactory1 from './config1';
|
|
|
4
4
|
import configSchemaFactory2 from './config2';
|
|
5
5
|
import stateModelF1 from './stateModel1';
|
|
6
6
|
import stateModelF2 from './stateModel2';
|
|
7
|
-
export default (pluginManager)
|
|
7
|
+
export default function LinearGCContentDisplayF(pluginManager) {
|
|
8
8
|
pluginManager.addDisplayType(() => {
|
|
9
9
|
const configSchema = configSchemaFactory1(pluginManager);
|
|
10
10
|
const stateModel = stateModelF1(pluginManager, configSchema);
|
|
@@ -31,4 +31,4 @@ export default (pluginManager) => {
|
|
|
31
31
|
ReactComponent: LinearWiggleDisplayReactComponent,
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
|
-
}
|
|
34
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/plugin-gccontent",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"description": "JBrowse 2 gccontent concepts",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"jbrowse",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"distModule": "esm/index.js",
|
|
54
54
|
"srcModule": "src/index.ts",
|
|
55
55
|
"module": "esm/index.js",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "11b28d66d782eb06f92ccb993108bb6c3c82819e"
|
|
57
57
|
}
|