Skip to content

Commit

Permalink
Fix coronaviridae phylotree
Browse files Browse the repository at this point in the history
  • Loading branch information
tverbeiren committed Aug 17, 2023
1 parent f3af545 commit e6bbb3a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion _template/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ renderedTree = tree
const information = virusInfoOrUndefined(virus)
if (virusOfInterest(node.data.name)) {
const currentName = virus
const newName = information.abbreviation
const newName = information.abbreviation.trim()
node.data.name = newName
} else {
node.data.name = "remove_me"
Expand Down
2 changes: 1 addition & 1 deletion alphaviruses/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ renderedTree = tree
const information = virusInfoOrUndefined(virus)
if (virusOfInterest(node.data.name)) {
const currentName = virus
const newName = information.abbreviation
const newName = information.abbreviation.trim()
node.data.name = newName
} else {
node.data.name = "remove_me"
Expand Down
4 changes: 3 additions & 1 deletion coronaviridae/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ hide = hideTabset()
tree = new phylotree.phylotree(nwk) // class Phylotree
// https://github.com/veg/phylotree.js/blob/master/src/main.js#L90
import { update_tree } from "/_js/functions.js"
renderedTree = tree
// Transform the tree (translate and prune)
// based on the input Excel file for this virus family
Expand All @@ -181,7 +183,7 @@ renderedTree = tree
const information = virusInfoOrUndefined(virus)
if (virusOfInterest(node.data.name)) {
const currentName = virus
const newName = information.abbreviation
const newName = information.abbreviation.trim()
node.data.name = newName
} else {
node.data.name = "remove_me"
Expand Down
2 changes: 1 addition & 1 deletion flaviviridae/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ renderedTree = tree
const information = virusInfoOrUndefined(virus)
if (virusOfInterest(node.data.name)) {
const currentName = virus
const newName = information.abbreviation
const newName = information.abbreviation.trim()
node.data.name = newName
} else {
node.data.name = "remove_me"
Expand Down
2 changes: 1 addition & 1 deletion paramyxoviridae/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ renderedTree = tree
const information = virusInfoOrUndefined(virus)
if (virusOfInterest(node.data.name)) {
const currentName = virus
const newName = information.abbreviation
const newName = information.abbreviation.trim()
node.data.name = newName
} else {
node.data.name = "remove_me"
Expand Down
2 changes: 1 addition & 1 deletion pneumoviridae/index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ renderedTree = tree
const information = virusInfoOrUndefined(virus)
if (virusOfInterest(node.data.name)) {
const currentName = virus
const newName = information.abbreviation
const newName = information.abbreviation.trim()
node.data.name = newName
} else {
node.data.name = "remove_me"
Expand Down

0 comments on commit e6bbb3a

Please sign in to comment.