Skip to the content

Capsid menu

app/lib/phage-table.mjs

14 lines and 1 functions in DrDustinEdwards/dustinedwards-info, at commit 1590ba4 on 2026-10-24. This file on GitHub.

Functions

The functions of phage-table.mjs
FunctionLinesComplexityCoveredCRAPMutation
phagesDbUrl13 to 151100%OkCRAP 1No data: no mutants in this code

Imports

It imports no other module of this repo. Imported by app/lib/pages/invariants.mjs, app/lib/phages/compile.mjs, app/routes/phages.tsx.

Source

/**
 * The address of a PhagesDB record. The phage table on /research/phages is drawn from the phage rows (content/phages,
 * docs/PHAGES.md): into the page's markdown, which the twin, the search records and the page's invariants read, and
 * into Capsomer's catalog for the HTML (app/lib/phages/catalog.mjs). The phage rows are judged by
 * app/lib/phages/compile.mjs.
 */

/**
 * The human page for a PhagesDB record name.
 *
 * @param {string} record
 */
export function phagesDbUrl(record) {
  return `https://phagesdb.org/phages/${record}/`;
}