Repository navigation
Fix GARD NaN/zero-breakpoint display and library packaging - #905
Merged
Merged
Conversation
…g requirements The library and app builds both wrote dist/hyphyvision.js, and the app build cleans dist/, so a publish after build could ship the app bundle. The library now builds to lib/ (main updated), package files lists only what it emits, prepublishOnly runs build:library, and the README documents the host requirements. Silence two intentional no-console warnings in absrelNotebook.
…-breakpoint count and single-tree Figure 4
The library bundle used bare $ / d3 references (provided by ProvidePlugin in the app build only), so an embedding host without those globals failed with '$ is not a function'. Provide them through the external packages and simplify the README host requirements accordingly.
lib/hyphyvision.js references a hashed SVG emitted alongside it; without it in "files" the published package would have a broken asset URL.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #904 (veg/hyphy#2039): fixes the remaining known issues found while debugging it.
GARD viewer
bestModelAICc, which older HyPhy output (including our own demodata/json_files/gard/Flu.fna.GARD.json) doesn't have. Newsrc/helpers/gardNotebook.jsnormalizes a copy of the result:bestModelAICc = baselineScore − Σ improvements.deltaAICcwhen missing (same formula as the legacygard.jsx; matches HyPhy's own value exactly on 2.5.101/2.5.103 fixtures). Demo now shows 166.717 / 181.594.trees, and coerces stringbps;makeTreeDivsis redefined behind an input-signature guard (same pattern asabsrelNotebook.js, fix(absrel): render results that lack branch-site likelihoods (#888) #903).checkGardNotebookwarns if the notebook cells it relies on change.processDatano longer mutatesprops.json(used by Export).__tests__/gardNotebook.test.js: 13 tests with 2.5.103 fixtures.Library packaging
clean: true) andbuild:libraryboth wrotedist/hyphyvision.js, so a publish could ship the app bundle. The library now builds tolib/andmainislib/hyphyvision.js. The app stays indist/, soserver.js, DEPLOY.md and CI are unchanged. AddedprepublishOnly: yarn build:library. Deep imports ofhyphy-vision/dist/hyphyvision.jswill no longer resolve; worth a minor version bump.fileslisted css/min/map files the library build never emitted, and omitted the SVG asset the bundle references. Now matchesnpm packoutput.ProvidePluginthe app has, so hosts had to define$/jQuery/d3globals. Now bound to the externals. README documents the remaining requirement (aliasphylotree.css) with a minimal host webpack config.no-consolewarnings inabsrelNotebook.js.Verification
buildandbuild:libraryin both orders leavedist/andlib/intact./: old-HyPhy GARD files show numeric tiles; 2.5.103 files unchanged (26.76 / 91.54); zero-breakpoint AA file shows 0 breakpoints and renders Figure 4; FEL/BUSTED/aBSREL samples still route and render; 0 console errors.Not changed
GARDResultssummary text ingard.jsx("up to N breakpoints", search-space %) is off for zero-breakpoint files; fixing it changes numbers for normal files, so left for a separate look.GARD.bfwrites a differenttrees/bpsshape when there are no breakpoints; default nucleotide GARD hits aComputeBranchCacheerror on several test alignments in 2.5.101 and 2.5.103.