diff options
author | Brian Cully <bjc@spork.org> | 2024-01-20 08:35:52 -0500 |
---|---|---|
committer | Brian Cully <bjc@spork.org> | 2024-01-20 08:55:16 -0500 |
commit | 9e7a588551c36090742394a80fa6d128f31b288b (patch) | |
tree | 89d6e06b604fb3f4859ef476ceab7dd5f55908df /js-ver.org | |
parent | 8505558905726466f5fdd7415dbecb06a4e84ea4 (diff) | |
download | fav-9e7a588551c36090742394a80fa6d128f31b288b.tar.gz fav-9e7a588551c36090742394a80fa6d128f31b288b.zip |
javascript: import translation tables only where needed
Diffstat (limited to 'js-ver.org')
-rw-r--r-- | js-ver.org | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -92,8 +92,6 @@ start a python http server with: set up the javascript code by loading direct module dependencies and running the analysis when the form is submitted. #+begin_src javascript :noweb yes :tangle main.mjs - import codon2AA from './codon2AminoAcid.mjs'; - import aa2Code from './aminoAcid2Code.mjs'; import process from './varscan.mjs'; import Log from './logging.mjs'; @@ -140,7 +138,7 @@ when the form is submitted, load the reference genome,its protein coding regions Promise.all([variantsPromise, genomePromise, protein2PosPromise]) .then(([variants, genome, protein2Pos]) => { - const results = process(codon2AA, aa2Code, genome, protein2Pos, variants); + const results = process(genome, protein2Pos, variants); updateDownloadLink(resultsFilename, results); fillTable(results); }); @@ -252,8 +250,10 @@ create a download link ** variant to codon whatever i need to name this #+begin_src javascript :tangle varscan.mjs import Log from './logging.mjs'; + import codon2AA from './codon2AminoAcid.mjs'; + import aa2Code from './aminoAcid2Code.mjs'; - function process(codon2AA, aa2Code, genome, protein2Pos, variants) { + function process(genome, protein2Pos, variants) { let lineno = 0; let name = 'unnamed-change'; return variants |