Documentation style¶
Write for someone reconstructing mutant protein sequences from RNA reads and interpreting support or empty results. Follow the mhctools writing guide and its quiet typography. The site uses MkDocs with Material.
Structure¶
- The home page introduces Isovar, shows installation and a short VCF/BAM-to-protein example, explains support and empty results, and routes readers to task guides.
- Getting-started guides cover result interpretation, the command-line interface, reference selection, and sequencing requirements.
- Task guides explain one pipeline stage or evidence workflow at a time (read collection, assembly and translation, phasing, matched-normal evidence, SV and fusion RNA, viral and isoform recovery).
- Concepts and design pages cover library responsibilities and internal models.
Use descriptive headings organized around reader tasks. Avoid repeating the sidebar in the page body. Use compact comparison tables with short cells; move long explanations below the table or onto a linked reference page.
Prose and literal syntax¶
Keep scientific qualifications beside the claim they constrain: proteins come from observed RNA reads (Isovar never fills gaps with reference sequence), missing or empty outputs reflect lack of coverage or frame ambiguity rather than proof of absence, filters mark results without removing them, and reconstructed RNA does not establish protein expression.
Use ordinary text for biological concepts, units, and library names; link library names on first use in a section and in comparison tables. Reserve inline code for literal API symbols, fields, flags, values, and commands.
| Use code | Use ordinary text |
|---|---|
run_isovar(), IsovarResult, ReadCollector |
Isovar, Varcode, PyEnsembl |
num_alt_fragments, top_protein_sequence, passes_all_filters |
RNA-seq fragments, reading frame, amino acids, splice junction |
None, "translated", "insufficient_support" |
Missing protein sequence, unresolved frame, empty result |
isovar run --vcf somatic.vcf --bam rna.bam |
Command-line interface, CSV table |
Do not combine bold and inline code styling just to emphasize a field or flag name; explain it in a sentence or give it a row in a table.
Examples and presentation¶
Prefer complete, copyable examples with imports, pinned reference releases, and
example output when it helps interpretation. Keep prose to a readable line
length and use the site's system-font stylesheet (docs/stylesheets/docs.css).
Add a callout only when the reader needs a distinct warning or note to use an
example safely. Preserve existing page URLs and linked heading anchors when
reorganizing content.
Checks¶
Before submitting documentation changes, run from the repository root:
./docs.sh runs mkdocs build --strict with nav, link, and anchor validation.
tests/test_docs.py verifies run_isovar parameter documentation, filter
names in docs/results.md, and repository links/anchors across all Markdown
pages. Review the built first-run and guide pages with mkdocs serve at both
desktop and narrow widths.