jbrowse-plugin-msaview 2.10.2 → 3.0.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/dist/MsaViewPanel/afterCreateAutoruns.d.ts +1 -1
- package/dist/MsaViewPanel/afterCreateAutoruns.js +3 -3
- package/dist/MsaViewPanel/model.d.ts +12 -76
- package/dist/MsaViewPanel/model.js +1 -1
- package/dist/jbrowse-plugin-msaview.umd.production.min.js +29 -29
- package/dist/jbrowse-plugin-msaview.umd.production.min.js.map +4 -4
- package/dist/utils/ncbiDomains.d.ts +2 -30
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/src/MsaViewPanel/afterCreateAutoruns.ts +3 -3
- package/src/MsaViewPanel/model.ts +1 -1
- package/src/version.ts +1 -1
|
@@ -5,39 +5,11 @@ export type DomainMatch = InterProScanResults['matches'][number];
|
|
|
5
5
|
* domain and site annotations, keyed by both the versioned and primary
|
|
6
6
|
* accession so callers can look up by whichever NCBI returned.
|
|
7
7
|
*/
|
|
8
|
-
export declare function parseCddDomains(xml: string): Map<string,
|
|
9
|
-
signature: {
|
|
10
|
-
entry?: {
|
|
11
|
-
name: string;
|
|
12
|
-
description: string;
|
|
13
|
-
accession: string;
|
|
14
|
-
featureType?: string;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
17
|
-
locations: {
|
|
18
|
-
start: number;
|
|
19
|
-
end: number;
|
|
20
|
-
strand?: number;
|
|
21
|
-
}[];
|
|
22
|
-
}[]>;
|
|
8
|
+
export declare function parseCddDomains(xml: string): Map<string, import("msa-parsers").InterProScanMatch[]>;
|
|
23
9
|
/**
|
|
24
10
|
* Fetch pre-computed CDD domain and site annotations for NCBI protein
|
|
25
11
|
* accessions. These come baked into the GenPept records, so a single batched
|
|
26
12
|
* efetch returns them with no job submission or polling. Results are cached in
|
|
27
13
|
* IndexedDB so reopening a view doesn't refetch.
|
|
28
14
|
*/
|
|
29
|
-
export declare function fetchProteinDomains(accessions: string[]): Promise<Map<string,
|
|
30
|
-
signature: {
|
|
31
|
-
entry?: {
|
|
32
|
-
name: string;
|
|
33
|
-
description: string;
|
|
34
|
-
accession: string;
|
|
35
|
-
featureType?: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
locations: {
|
|
39
|
-
start: number;
|
|
40
|
-
end: number;
|
|
41
|
-
strand?: number;
|
|
42
|
-
}[];
|
|
43
|
-
}[]>>;
|
|
15
|
+
export declare function fetchProteinDomains(accessions: string[]): Promise<Map<string, import("msa-parsers").InterProScanMatch[]>>;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "
|
|
1
|
+
export declare const version = "3.0.0";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '
|
|
1
|
+
export const version = '3.0.0';
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "
|
|
2
|
+
"version": "3.0.0",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"name": "jbrowse-plugin-msaview",
|
|
5
5
|
"repository": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"git-cliff": "^2.13.1",
|
|
44
44
|
"mobx": "^6.16.1",
|
|
45
45
|
"mobx-react": "^9.2.2",
|
|
46
|
-
"msa-parsers": "^
|
|
46
|
+
"msa-parsers": "^6.0.0",
|
|
47
47
|
"pixelmatch": "^7.2.0",
|
|
48
48
|
"pngjs": "^7.0.0",
|
|
49
49
|
"prettier": "^3.9.6",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"puppeteer": "^25.3.0",
|
|
52
52
|
"react": "^19.2.8",
|
|
53
53
|
"react-dom": "^19.2.8",
|
|
54
|
-
"react-msaview": "^
|
|
54
|
+
"react-msaview": "^6.0.0",
|
|
55
55
|
"rimraf": "^6.1.3",
|
|
56
56
|
"rxjs": "^7.8.2",
|
|
57
57
|
"serve": "^14.2.6",
|
|
@@ -128,15 +128,15 @@ export function launchBlastIfNeeded(self: JBrowsePluginMsaViewModel) {
|
|
|
128
128
|
* Once an accession-bearing alignment is present (fresh from BLAST or restored
|
|
129
129
|
* from cache), fetch NCBI CDD domains for those accessions and overlay them.
|
|
130
130
|
* Runs once per view; the domainsRequested guard prevents refiring when NCBI
|
|
131
|
-
* returns no domains (which leaves
|
|
131
|
+
* returns no domains (which leaves the annotation list empty).
|
|
132
132
|
*/
|
|
133
133
|
export function autoLoadProteinDomains(self: JBrowsePluginMsaViewModel) {
|
|
134
|
-
const { rows, domainsRequested,
|
|
134
|
+
const { rows, domainsRequested, annotations } = self
|
|
135
135
|
const hasAccessions = self.data.treeMetadata?.includes('"Accession"') ?? false
|
|
136
136
|
if (
|
|
137
137
|
rows.length > 0 &&
|
|
138
138
|
hasAccessions &&
|
|
139
|
-
|
|
139
|
+
annotations.length === 0 &&
|
|
140
140
|
!domainsRequested
|
|
141
141
|
) {
|
|
142
142
|
self.setDomainsRequested(true)
|
|
@@ -180,7 +180,7 @@ export default function stateModelFactory() {
|
|
|
180
180
|
/**
|
|
181
181
|
* #volatile
|
|
182
182
|
* guards the one-shot auto-fetch of protein domains so it doesn't refire
|
|
183
|
-
* when NCBI returns no domains (leaving
|
|
183
|
+
* when NCBI returns no domains (leaving the annotation list empty)
|
|
184
184
|
*/
|
|
185
185
|
domainsRequested: false,
|
|
186
186
|
}),
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '
|
|
1
|
+
export const version = '3.0.0'
|