diff --git a/plugins/alignments/package.json b/plugins/alignments/package.json index 94fc788802..c0b0291acb 100644 --- a/plugins/alignments/package.json +++ b/plugins/alignments/package.json @@ -35,7 +35,7 @@ "dependencies": { "@babel/runtime": "^7.17.9", "@gmod/bam": "^1.1.15", - "@gmod/cram": "^1.6.3", + "@gmod/cram": "^1.6.4", "@material-ui/icons": "^4.9.1", "color": "^3.1.2", "copy-to-clipboard": "^3.3.1", diff --git a/plugins/linear-comparative-view/src/ReadVsRef.tsx b/plugins/linear-comparative-view/src/ReadVsRef.tsx index 92cd166a20..5fac124eab 100644 --- a/plugins/linear-comparative-view/src/ReadVsRef.tsx +++ b/plugins/linear-comparative-view/src/ReadVsRef.tsx @@ -196,7 +196,7 @@ export function WindowSizeDlg(props: { const { rpcManager } = getSession(track) const adapterConfig = getConf(track, 'adapter') const sessionId = getRpcSessionId(track) - const assemblyNames = getConf(track, 'assemblyNames') + const feats = (await rpcManager.call(sessionId, 'CoreGetFeatures', { adapterConfig, sessionId, @@ -205,10 +205,10 @@ export function WindowSizeDlg(props: { refName: saRef, start: +saStart - 1, end: +saStart, - assemblyName: assemblyNames[0], }, ], })) as Feature[] + const result = feats.find( f => f.get('name') === preFeature.get('name') && @@ -496,13 +496,8 @@ export function WindowSizeDlg(props: { } return ( - - + + Set window size - {!primaryFeature ? ( + {error ? ( + {`${error}`} + ) : !primaryFeature ? (
To accurately perform comparison we are fetching the primary @@ -527,7 +524,6 @@ export function WindowSizeDlg(props: { Show an extra window size around each part of the split alignment. Using a larger value can allow you to see more genomic context. - {error ? {`${error}`} : null}