@jbrowse/text-indexing 4.1.15 → 4.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/esm/TextIndexing.js +3 -3
- package/esm/util.js +3 -3
- package/package.json +3 -4
package/esm/TextIndexing.js
CHANGED
|
@@ -65,7 +65,7 @@ async function aggregateIndex({ tracks, statusCallback, outDir: paramOutDir, att
|
|
|
65
65
|
fs.mkdirSync(trixDir);
|
|
66
66
|
}
|
|
67
67
|
if (!assemblyNames) {
|
|
68
|
-
throw new Error('No assemblies passed.
|
|
68
|
+
throw new Error('No assemblies passed. Assemblies required for aggregate indexes');
|
|
69
69
|
}
|
|
70
70
|
for (const asm of assemblyNames) {
|
|
71
71
|
const id = `${asm}-index`;
|
|
@@ -96,7 +96,7 @@ async function indexDriver({ tracks, outDir, attributesToIndex, name, featureTyp
|
|
|
96
96
|
statusCallback('Indexing files.');
|
|
97
97
|
await runIxIxx(readable, outDir, name);
|
|
98
98
|
checkStopToken(stopToken);
|
|
99
|
-
|
|
99
|
+
generateMeta({
|
|
100
100
|
configs: tracks,
|
|
101
101
|
attributesToIndex,
|
|
102
102
|
outDir,
|
|
@@ -127,7 +127,7 @@ async function* indexFiles({ tracks, attributesToIndex: idx1, outDir, featureTyp
|
|
|
127
127
|
},
|
|
128
128
|
});
|
|
129
129
|
}
|
|
130
|
-
if (type === 'Gff3TabixAdapter') {
|
|
130
|
+
else if (type === 'Gff3TabixAdapter') {
|
|
131
131
|
yield* indexGff3({
|
|
132
132
|
config: track,
|
|
133
133
|
attributesToIndex,
|
package/esm/util.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import path from 'path';
|
|
2
2
|
import { isSupportedIndexingAdapter } from '@jbrowse/core/util';
|
|
3
|
-
import
|
|
3
|
+
import { sanitizeForFilename } from '@jbrowse/text-indexing-core';
|
|
4
4
|
export function createTextSearchConf(name, trackIds, assemblyNames, locationPath) {
|
|
5
5
|
const base = path.join(locationPath, 'trix');
|
|
6
|
-
const n =
|
|
6
|
+
const n = sanitizeForFilename(name);
|
|
7
7
|
return {
|
|
8
8
|
type: 'TrixTextSearchAdapter',
|
|
9
9
|
textSearchAdapterId: name,
|
|
@@ -16,7 +16,7 @@ export function createTextSearchConf(name, trackIds, assemblyNames, locationPath
|
|
|
16
16
|
locationType: 'LocalPathLocation',
|
|
17
17
|
},
|
|
18
18
|
metaFilePath: {
|
|
19
|
-
localPath: path.join(base, `${n}.json`),
|
|
19
|
+
localPath: path.join(base, `${n}_meta.json`),
|
|
20
20
|
locationType: 'LocalPathLocation',
|
|
21
21
|
},
|
|
22
22
|
tracks: trackIds,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/text-indexing",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "JBrowse 2 text indexing for desktop",
|
|
6
6
|
"keywords": [
|
|
@@ -25,9 +25,8 @@
|
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"ixixx": "^3.0.3",
|
|
28
|
-
"
|
|
29
|
-
"@jbrowse/text-indexing-core": "^4.
|
|
30
|
-
"@jbrowse/core": "^4.1.15"
|
|
28
|
+
"@jbrowse/core": "^4.2.0",
|
|
29
|
+
"@jbrowse/text-indexing-core": "^4.2.0"
|
|
31
30
|
},
|
|
32
31
|
"peerDependencies": {
|
|
33
32
|
"react": ">=18.0.0",
|