Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Develop #4

Merged
merged 227 commits into from
Dec 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
28fccd8
Experiment with family page header
tverbeiren May 24, 2023
fef59f4
Experiments - 1
tverbeiren May 24, 2023
03c8e5c
Add missing files
tverbeiren May 24, 2023
49f2b85
Add more missing files
tverbeiren May 24, 2023
0b6c063
Some more experimentation
tverbeiren May 24, 2023
0af5673
Rework for CHIKV and only 1 tool from the toolbox
tverbeiren May 25, 2023
c80c930
Alternative approach to toolbox
tverbeiren May 25, 2023
d8a4178
Fix
tverbeiren May 25, 2023
3c6b0df
Only show virus info when virus is selected
tverbeiren May 25, 2023
c4b7cd1
Toolbox backgrounds
tverbeiren May 26, 2023
592643c
Add background image to some tools
tverbeiren May 26, 2023
6179632
Split virus content and page
tverbeiren May 26, 2023
c9b8bc5
Clear annotations
tverbeiren May 26, 2023
b69608f
Merge pull request #5 from data-intuitive/toolbox
tverbeiren May 26, 2023
2ec49e9
Add MAYV
tverbeiren May 26, 2023
62b49cd
Update font in line with VirusBank site
tverbeiren May 30, 2023
5bcfbdc
Update virus-render in line with VirusBank site
tverbeiren May 30, 2023
0954bce
Add hover functionality with full name and small toolbox hint
tverbeiren May 30, 2023
6bd7797
Add rendering of virus and banner to repo
tverbeiren May 30, 2023
e137806
Update tree UI
tverbeiren May 31, 2023
c0c3b5e
Update banner
tverbeiren May 31, 2023
8c626fc
Simplify and improve toolbox
tverbeiren May 31, 2023
83fcded
Add icons in toolbox
tverbeiren May 31, 2023
5fef64e
Add VEEV, update rendering for virusses without tools (yet)
tverbeiren May 31, 2023
33a390a
Fix consistency of colors in phylogenetic tree
tverbeiren May 31, 2023
1557fef
Add legend
tverbeiren May 31, 2023
67bf847
Add SINV and SFV
tverbeiren May 31, 2023
b0d0148
Align title banner for virus pages
tverbeiren May 31, 2023
67fabe3
Improve nested tabsets
tverbeiren May 31, 2023
04364da
Align font color with VirusBank
tverbeiren May 31, 2023
2134282
Set font spec in styles.css
tverbeiren May 31, 2023
6377a15
Cleanup
tverbeiren May 31, 2023
65c27d0
Dynamic toolbox, very early draft with hiccups
tverbeiren May 31, 2023
b4fb820
Favour family toolbox rendering above virus-page
tverbeiren May 31, 2023
33af220
Fix toolbox on virus pages
tverbeiren May 31, 2023
363c473
Add missing file, reuse _ojs_data.qmd everywhere
tverbeiren May 31, 2023
c30f976
Update toolbox overview in virus information
tverbeiren May 31, 2023
5d8d21a
Improve links to virus page
tverbeiren May 31, 2023
68e8910
Remove hover effect on edges and remove toolbox images. (#16)
DriesSchaumont Jun 9, 2023
b0410a9
Explore options for dynamic tables and sections
tverbeiren Jun 14, 2023
a63238c
Add missing _js dir
tverbeiren Jun 14, 2023
63bc8fd
Reorganize
tverbeiren Jun 14, 2023
3c727c8
Add 'beta' virus family (clone of alhpa)
tverbeiren Jun 14, 2023
d118488
More room for toolbox (8/4 instead of 9/3)
tverbeiren Jun 14, 2023
ba41879
Streamline (centralize) toolbox YAML info file
tverbeiren Jun 14, 2023
39433f3
Small improvements
tverbeiren Jun 14, 2023
4943846
Fix gh actions
tverbeiren Jun 14, 2023
56e80cd
Forgot to add the src/ dir
tverbeiren Jun 14, 2023
76656cf
First draft ready
tverbeiren Jun 14, 2023
5d8cf07
Use Tabulator for tables
tverbeiren Jun 15, 2023
1fe5287
Turned cell contents into links
tverbeiren Jun 15, 2023
42c44e6
Minor update to YAML header
tverbeiren Jun 15, 2023
f42be3c
Different approach to loading data AND dynamic toolbox
tverbeiren Jun 15, 2023
6d01d4b
Point to new figures and wrap toolbox/virus in a function
tverbeiren Jun 15, 2023
b1041af
Add new figures
tverbeiren Jun 15, 2023
bd1bbe4
Remove the beta family
tverbeiren Jun 15, 2023
2aaef60
Add mising pngs
tverbeiren Jun 15, 2023
a681d70
Fix data loader
tverbeiren Jun 15, 2023
9c458cb
Reorder code blocks for improved loading
tverbeiren Jun 16, 2023
ccf6993
Init toolbox when data is loaded
tverbeiren Jun 16, 2023
7ae7cb9
Further steps in making the toolbox dynamic
tverbeiren Jun 16, 2023
19adf21
Merge pull request #18 from data-intuitive/dynamic
tverbeiren Jun 16, 2023
767ef14
Merge pull request #17 from data-intuitive/toolbox_page
tverbeiren Jun 16, 2023
fd8ec2a
Use hexagons instead of blocks (WIP)
tverbeiren Jun 16, 2023
db321ae
Hexagonal toolbox (in family overview)
tverbeiren Jun 19, 2023
f5ac05d
Update toolbox in toolbox-page and virus-pages
tverbeiren Jun 19, 2023
c220287
Improve layout of toolbox icons
tverbeiren Jun 19, 2023
e37a465
Add tooltips and links to toolbox entries
tverbeiren Jun 19, 2023
fc63a31
Update virus-specific toolbox in line with the rest
tverbeiren Jun 19, 2023
4064f52
Minor update to main page
tverbeiren Jun 19, 2023
64be694
Keep selected virus above toolbox
tverbeiren Jun 19, 2023
a09d261
Update medical relevance and maps
tverbeiren Jul 18, 2023
048662c
Remove obsolete img/ directory
tverbeiren Jul 18, 2023
c38a67a
Rework toolbox based on provided info
tverbeiren Jul 18, 2023
0f4bf42
Update toolbox rendition to show two icons
tverbeiren Jul 18, 2023
f5d2baa
Fix situation with multiple icons per tool
tverbeiren Jul 18, 2023
aab1970
Minor updates
tverbeiren Jul 18, 2023
e5d5e56
Add para family for validating tree tramsformation
tverbeiren Jul 18, 2023
59b0165
Fetch all virus information from Excel
tverbeiren Jul 19, 2023
4b297fd
Various improvements
tverbeiren Jul 20, 2023
a5c9f42
Update CI
tverbeiren Jul 20, 2023
9c2feec
Various updates
tverbeiren Jul 20, 2023
4ed635f
Point to global ojs_data.qmd file
tverbeiren Jul 20, 2023
76ee915
Forgot updates
tverbeiren Jul 20, 2023
a2458a0
Reinstate toolbox functionality in virus pages
tverbeiren Jul 20, 2023
b9ec9ba
Improve parse.js, ui of virus pages and include placeholders
tverbeiren Jul 20, 2023
7d45f18
Tabset functionality and other updates
tverbeiren Jul 20, 2023
5d6b64e
Merge pull request #21 from data-intuitive/feature/tree
tverbeiren Jul 20, 2023
77b5b9e
Add template dir
tverbeiren Jul 20, 2023
c7a4083
Render new virus pages based on latest excel sheet
DriesSchaumont Aug 1, 2023
f3af545
Merge pull request #22 from data-intuitive/develop_all_virusses
tverbeiren Aug 14, 2023
e6bbb3a
Fix coronaviridae phylotree
tverbeiren Aug 17, 2023
7241475
Add virus.jpg to root as well for banner
tverbeiren Aug 17, 2023
a0f045c
Fix edges in tree: interaction and UI improvements
tverbeiren Aug 17, 2023
8b66dde
Fix virus info opening without user feedback
tverbeiren Aug 17, 2023
a7ea456
Update README
tverbeiren Aug 18, 2023
09e3c89
Small update to styling
tverbeiren Aug 23, 2023
0764c63
Toolbox pre-rendering (WIP)
tverbeiren Aug 28, 2023
6f19285
Merge branch 'tmp' into develop
tverbeiren Aug 28, 2023
6814e37
Revert toolbox rendition to dynamic but different js lib
tverbeiren Aug 29, 2023
4908b1b
Add tables with details in Toolbox
tverbeiren Aug 29, 2023
41be9ff
Render table with viruses per toolbox
tverbeiren Aug 30, 2023
935a5ac
Trim values in objects
tverbeiren Aug 30, 2023
91d3939
Point to correct _ojs_data include file
tverbeiren Aug 30, 2023
9bce7f5
Include all xlsx and newick files
tverbeiren Aug 30, 2023
c323dca
Remove old alpha/ dir
tverbeiren Aug 30, 2023
2784ad3
Remove debugging info
tverbeiren Aug 30, 2023
b0da946
Remove obsolete action for alpha section
tverbeiren Aug 30, 2023
c6499a0
Alignment across code
tverbeiren Aug 30, 2023
0390c91
Minor style updates & attempt deploy on platform.virusbankplatform.org
tverbeiren Sep 4, 2023
e2fdb13
Update gh actions
tverbeiren Sep 4, 2023
9221e03
Add margin on index page
tverbeiren Sep 4, 2023
ec84fdd
Update layout of tiles
tverbeiren Sep 4, 2023
2c966c3
Cleanup
tverbeiren Sep 4, 2023
17d7bdb
Correct naming of tools
tverbeiren Sep 5, 2023
78363bf
Work on layout of tree + toolbox for para
tverbeiren Sep 5, 2023
c78ce70
Remove lingering debug statement
tverbeiren Sep 5, 2023
4651e32
Add missing _js/family.qmd
tverbeiren Sep 5, 2023
61b6ab4
Various updates: breadcrumbs for viruses, includes (only for para)
tverbeiren Sep 6, 2023
14da5e2
Add breadcrumb to para family
tverbeiren Sep 6, 2023
33657c9
Improve check for toolbox availability
tverbeiren Sep 6, 2023
d0a1ada
Improve phylotree layout/size
tverbeiren Sep 6, 2023
1175d11
flaviviridae / ZIKV update
tverbeiren Sep 6, 2023
6a8c35f
Improve layout - CSS cleanup TODO
tverbeiren Sep 6, 2023
ded3762
Update layout of virus info pages
tverbeiren Sep 6, 2023
b38a590
Improve layout of toolbox sections in virus pages
tverbeiren Sep 6, 2023
0961808
Add content for Flaviviridae
tverbeiren Sep 6, 2023
2ae37be
Minor updates
tverbeiren Sep 6, 2023
63ab5db
Alpha update
tverbeiren Sep 6, 2023
2b1c287
Add virus symptoms to alpha viruses
tverbeiren Sep 6, 2023
824f3da
Add breadcrumb to alpha/index.qmd
tverbeiren Sep 6, 2023
1ccda10
Remove redundant files
tverbeiren Sep 13, 2023
9b30208
Minor updates
tverbeiren Sep 13, 2023
59e294e
Remove bubbles in tree
tverbeiren Sep 13, 2023
de9f850
Align family page
tverbeiren Sep 13, 2023
ec1f06f
Update images for Flavivirus family - transparent bg
tverbeiren Sep 13, 2023
1ce18e2
Minor update to family breadcrumb
tverbeiren Sep 13, 2023
9b50dbc
Update paramyxo family.xlsx
tverbeiren Sep 14, 2023
d83999e
Update content for coronaviruses
tverbeiren Sep 15, 2023
1e278e8
Update family templates for coronaviruses
tverbeiren Sep 15, 2023
0877c81
Update template stylesheet to center text with figures in virus pages
tverbeiren Sep 15, 2023
3334b65
Apply new style to coronaviruses
tverbeiren Sep 15, 2023
492c7ed
Rename coronaviridae -> coronaviruses
tverbeiren Sep 15, 2023
a3ed4eb
Rename flaviviridae -> flaviviruses
tverbeiren Sep 15, 2023
9f5c538
Selecting a different virus (tab) also updates the toolbox
tverbeiren Sep 18, 2023
5734ad8
Update breadcrumbs
tverbeiren Sep 19, 2023
e84c3a8
Experimental logging
tverbeiren Sep 21, 2023
4e5417c
Add gropuing of virus strains
tverbeiren Sep 21, 2023
da2c15e
Add site-aware link formatter and first tests
tverbeiren Sep 21, 2023
3c78990
Fix dangling pointer to missing file
tverbeiren Sep 21, 2023
da20749
Further experiments with escaping the iFrame
tverbeiren Sep 22, 2023
ae7a324
Convert breadcrumb for virus page into header
tverbeiren Sep 22, 2023
af70ef1
Attempt at grouping viruses
tverbeiren Sep 22, 2023
4228d45
Add properly renamed pneumoviruses folder
tverbeiren Sep 22, 2023
4079c63
Add grouping of viruses
tverbeiren Sep 23, 2023
b5c88dc
Update logic for virus-toolbox
tverbeiren Sep 23, 2023
bd0a728
Add newick files explicitly
tverbeiren Sep 25, 2023
dfe3e6c
Remove file with wrong extension
tverbeiren Sep 25, 2023
9c760a9
Remove orthomyxo family temporarily
tverbeiren Sep 25, 2023
293d0a8
Add custom toolbox functionality (alpha stage)
tverbeiren Sep 25, 2023
d54d063
Rename paramyxoviridae -> paramyxoviruses
tverbeiren Sep 25, 2023
5b0f115
Fix broken pointers from phylotree
tverbeiren Sep 25, 2023
7433e9a
First version of orthomyxo family
tverbeiren Sep 25, 2023
43876dd
Add (by default empyt) toolbox include file for every virus
tverbeiren Sep 25, 2023
3a206b3
Update pneumoviruses
tverbeiren Sep 25, 2023
0719c90
Add content to pneumoviruses
tverbeiren Sep 25, 2023
3363feb
Update orthomyxo family
tverbeiren Sep 25, 2023
3bc3237
Update toolbox logic
tverbeiren Sep 25, 2023
fe6eb86
Update paramyxo family
tverbeiren Sep 25, 2023
3225b72
Update paramyxo (ctd)
tverbeiren Sep 25, 2023
d51692d
Remove duplicate entry
tverbeiren Sep 25, 2023
eca8da2
Add space
tverbeiren Sep 26, 2023
b9a7f8d
Fix main index.qmd for DEV testing
tverbeiren Sep 26, 2023
d2fc23e
Fix toolbox page
tverbeiren Sep 26, 2023
a50f2ef
Fix _ojs_data includes
tverbeiren Sep 26, 2023
b115fcd
Update for splitting annotations / familyAnnotations
tverbeiren Sep 26, 2023
fc7daf3
Improve styling
tverbeiren Sep 26, 2023
0bb2f04
Add a subtle border around hexagons
tverbeiren Sep 26, 2023
791726c
Improve alignment and overflow of virus name in hover box
tverbeiren Sep 27, 2023
b35dac4
Improve styling of tabsets, including relative width
tverbeiren Sep 27, 2023
3694ce3
Fix link
tverbeiren Sep 27, 2023
53e8a9f
Move styling of virus information to CSS and improvements
tverbeiren Sep 27, 2023
7d55736
Add pointer to text under figures
tverbeiren Sep 27, 2023
06d36a4
Make tabset li selection more specific to avoid conflicts
tverbeiren Sep 27, 2023
2463c5a
Update content of toolbox and descriptions
tverbeiren Sep 27, 2023
bba2853
Fix toolbox update when clicking on virus-tabs
tverbeiren Sep 27, 2023
22b437b
Add styling to custom toolbox text
tverbeiren Sep 27, 2023
805781a
Improve layout of toolbox info
tverbeiren Sep 27, 2023
8be4a31
Update get_link to point to /toolbox on platform site
tverbeiren Sep 27, 2023
a6c93f3
Update orthomyxo content
tverbeiren Sep 28, 2023
514180e
Update CedV
tverbeiren Sep 28, 2023
d93209d
Update pneumo
tverbeiren Sep 28, 2023
300ade3
Update paramyxo
tverbeiren Sep 28, 2023
1f92e79
Hide empty elements (containing no text or other elements)
tverbeiren Sep 28, 2023
c298cef
Improve styling of virus pages
tverbeiren Sep 28, 2023
e8a6d26
Avoid scrolling on nav items
tverbeiren Sep 28, 2023
9b4c0c5
Attempt at avoiding scrolling in tabsets
tverbeiren Oct 3, 2023
c95e71b
Feature: highlight currently selected virus in phylotree
tverbeiren Oct 4, 2023
e1dc8ef
Fix layolut issue in toolbox page
tverbeiren Oct 4, 2023
b222861
Update Flu medical relevance
tverbeiren Oct 4, 2023
13f5762
Switch to arrow instead of 'text'
tverbeiren Oct 5, 2023
3ab6a66
Improve hiding of DIVs so that toolbox is shown
tverbeiren Oct 5, 2023
ece7ab2
Update legend under phylotree
tverbeiren Oct 5, 2023
4f59f2d
Update content per request
tverbeiren Oct 5, 2023
e17bdd1
Improved highlighting of nodes in phylotree
tverbeiren Oct 5, 2023
f6c3598
Remove triangle in favor of something new to come up with
tverbeiren Oct 5, 2023
2c852c5
Highlight viruses in phylotree when virus-tabs are selected
tverbeiren Oct 5, 2023
932b330
Fix pointer to SARS-CoV transmission figure
tverbeiren Oct 5, 2023
9a6447f
Add filo and bunya viruses - with fix for filo bug
tverbeiren Oct 12, 2023
d5855cf
Add content for filoviruses
tverbeiren Oct 12, 2023
51da941
Add content for bunyaviruses and expand styles.css
tverbeiren Oct 12, 2023
7c9d467
Tree file added again
tverbeiren Oct 12, 2023
49caabb
Reduce padding on tabset headers
tverbeiren Oct 12, 2023
e22b514
Fix filtering criteria (pneumos did not render)
tverbeiren Oct 12, 2023
6ac05c7
Use acronyms instead of full names in tabsets
tverbeiren Oct 12, 2023
2eb99af
Resize small phylotrees to fill the pane
tverbeiren Oct 13, 2023
7585f49
Improve sizing of symptoms figures
tverbeiren Oct 13, 2023
9cd6cdf
Fix typos
tverbeiren Oct 13, 2023
55bdbd5
One remaining fix
tverbeiren Oct 13, 2023
ecc99a9
Remove stale functionality
tverbeiren Oct 13, 2023
8f32c67
Small fix
tverbeiren Oct 13, 2023
430370d
Support mobile devices (responsiveness) and cleanup CSS
tverbeiren Nov 9, 2023
a76ad5e
Do not publish to VirusBank automatically
tverbeiren Nov 9, 2023
bbeb9f4
Some text and layout fixes
tverbeiren Nov 10, 2023
683fc11
Remove hover from toolbox for mobile devices
tverbeiren Nov 10, 2023
3abd253
Improve scaling of phylotree with screen size
tverbeiren Nov 10, 2023
0ce972e
Improve zooming of phylotree with screen size
tverbeiren Nov 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
28 changes: 22 additions & 6 deletions .github/workflows/quarto_gh_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- synchronize
- closed

name: Render and deploy to Netlify
name: Render and deploy to Netlify and VirusBank

jobs:
build-deploy:
Expand All @@ -24,12 +24,16 @@ jobs:
- name: Assemble alpha/toolbox.json
uses: mikefarah/yq@master
with:
cmd: yq -M -o=json '. *d load("alpha/src/toolbox.yaml")' _includes/toolbox.yaml > alpha/toolbox.json
cmd: yq -M -o=json src/toolbox.yaml > toolbox/toolbox.json

- name: Assemble alpha/annotations.json
uses: mikefarah/yq@master
- uses: r-lib/actions/setup-r@v2
with:
cmd: yq -M -o=json alpha/src/annotations.yaml > alpha/annotations.json
r-version: "4.2"
use-public-rspm: true

- name: Install rmarkdown
run: |
Rscript -e 'install.packages("rmarkdown")'

- name: Install Quarto
uses: quarto-dev/quarto-actions/setup@v2
Expand Down Expand Up @@ -60,7 +64,19 @@ jobs:
site: ${{ env.NETLIFY_SITE_ID }}
dir: '_site'
alias: "${{ env.BRANCH_NAME }}"
message: 'Deploy prooduction ${{ github.ref }}'
message: 'Deploy production ${{ github.ref }}'

# - name: Deploy preview to VirusBank
# id: deploy_virusbank
# if: github.event_name == 'pull_request'
# uses: SamKirkland/[email protected]
# with:
# server: ftp.virusbankplatformorg.webhosting.be
# username: floor@virusbankplatformorg
# password: ${{ secrets.FTP_AUTH_SECRET }}
# local-dir: './_site/'
# log-level: standard
# dangerous-clean-slate: true

- uses: thollander/actions-comment-pull-request@v2
if: github.event_name == 'pull_request'
Expand Down
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# VirusBank Phylotree project

## Requirements and setup

In order to *render* this site/app, the following are required:

0. `wget`

1. Quarto

2. `yq`:

``` sh
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod a+x /usr/local/bin/yq
```

## Rendering

## Setup

### Toolbox page

The toolbox page is based on a YAML file.

### Virus family pages

Every virus family is contained in a *folder* of its own. Inside this
folder, everything related to this specific family can be found.

### Virus pages

## Various remarks

- `d3` is loaded by Quarto already, there is not need to load it again
41 changes: 41 additions & 0 deletions README.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: VirusBank Phylotree project
format: gfm
---

## Requirements and setup

In order to _render_ this site/app, the following are required:

0. `wget`

1. Quarto

2. `yq`:

```sh
sudo wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
sudo chmod a+x /usr/local/bin/yq
```

## Rendering

## Setup

### Toolbox page

The toolbox page is based on a YAML file.

### Virus family pages

Every virus family is contained in a _folder_ of its own. Inside this folder, everything related to this specific family can be found.

### Virus pages



## Various remarks

- `d3` is loaded by Quarto already, there is not need to load it again


1 change: 0 additions & 1 deletion _includes/cpe.qmd

This file was deleted.

1 change: 0 additions & 1 deletion _includes/delay.qmd

This file was deleted.

4 changes: 0 additions & 4 deletions _includes/models.qmd

This file was deleted.

1 change: 0 additions & 1 deletion _includes/pcr.qmd

This file was deleted.

116 changes: 0 additions & 116 deletions _includes/phylotree.qmd

This file was deleted.

1 change: 0 additions & 1 deletion _includes/plaque.qmd

This file was deleted.

1 change: 0 additions & 1 deletion _includes/reverse.qmd

This file was deleted.

21 changes: 0 additions & 21 deletions _includes/toolbox.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions _includes/yield.qmd

This file was deleted.

63 changes: 63 additions & 0 deletions _js/_ojs_data.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
```{ojs}
//| echo: false
//| output: false

// Utility functions
import { encodeTool } from '/_js/functions.js'

FA = FileAttachment

// Load the toolbox
families = await FA("/families.json").json()
_toolbox = await FileAttachment("/toolbox/toolbox.json").json()
toolbox = _toolbox.map( tool => encodeTool(tool) )

// console.log(toolbox)

addEncodedTools = (virus) => {
return ({ ... virus, tools: toolbox.flatMap( tool => virus[tool.encoded] ? tool.id : []) })
}

// Load all Newick tree file and create a dictionary `family -> tree`
nwks = await Promise.all(
families.map(async (family) => {
let tree = await FA("/"+ family + "/tree.newick").text()
return ({ family: family, nwk: tree })
}))
nwksAsMap = Object.fromEntries(nwks.map( el => [el.family, el.nwk] ))

// console.log(nwks)

// Load annotations for viruses for each family
_annotations = await Promise.all(
families.map( async (family) => {
let xls = await FA("/"+ family + "/family.xlsx").xlsx()
let _annotations = xls.sheet(0, { headers: true, range: ":L" })

let _trimmed = _annotations.map( virus => {
let trimmed = {}
Object.keys(virus).forEach( key => {
trimmed[key] = virus[key].trim()
})
return trimmed
})

return _trimmed.map( virus => ({... virus, family: family }) )
}))

// console.log(_annotations)

// Add tools information, just the list of tools ids
annotations = _annotations
.flat()
.map( virus => addEncodedTools(virus) )

//console.log(
// annotations
// .filter(v => v.availability_in_toolbox == "Yes")
// .filter(v => v.tools.length == 0)
// .map(v => "Family: " + v.family + " / virus: " + v.abbreviation)
// .join("\n")
//)

```
Loading
Loading