Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Each release's notes. From 1.0.0 on, a major or minor release has hand-written n

## Unreleased

- A pypgx `Indeterminate` call no longer counts as a call. Step 27 (`og pgx cpic-report`) read the word as a diplotype, so a gene PharmCAT could not call got a warning that pypgx "called Indeterminate", and the comparison table listed it as a pypgx call or a mismatch. Step 36 (`og pgx outside-calls`) and the summary's CYP2D6 block read a diplotype with one `Indeterminate` allele, such as `*1/Indeterminate`, as a call that could disagree with Cyrius. Now `Indeterminate`, in any case and as any allele, is no call in step 27, in step 36 and in the summary's CYP2D6 block. The comparison table's Match and Called_by columns change for such a gene. The pypgx block of `summary.json` counts a gene in `genes_called` only when its diplotype is a call by the rule step 32's Status column uses, so `*1/Indeterminate`, a lone allele and several diplotypes are no longer counted.
- Every drug of a combination product on the medication list is now checked. Step 27 read only the first word of a line, so `olanzapine/fluoxetine` was checked as olanzapine alone, and `naltrexone/bupropion 8/90 mg` was listed as not in the inhibitor table although bupropion is a strong CYP2D6 inhibitor. Now each word of a line counts: whitespace, commas, semicolons, `/`, `+` and brackets split it, punctuation at either end of a word is dropped, and the word `and`, doses, units and frequencies are dropped. A hyphenated word counts whole and by each part of three or more characters that starts with a letter, so `olanzapine-fluoxetine` is checked for fluoxetine while the `co` of `co-trimoxazole`, the `L` of `L-dopa` and the `5` of `5-HTP` never count as drugs. So `Contrave (naltrexone/bupropion) 8/90 mg` is checked for bupropion and `Epilim (sodium valproate)` for valproate. The phenoconversion takes the strongest inhibitor among all of them, a line is "Not in the inhibitor table" only when none of its drugs is, and a combination's second drug is marked `ON THE MEDICATION LIST` in the drug contraindications too.

- The live site's family page and its pedigree drawing are now built by `og live family`, in Rust. `bin/owngenome_live_family.py` asks `og` for a family's state, its `family.json`, the list of files it serves and `pedigree.svg`, and no longer reads the family's tables itself; `bin/pedigree_svg.py` and `bin/family_report.py` are gone. The page shows the same thing: `family.json` and the drawing were compared with the old code on the demo family and the test families, field by field and number by number, and matched. The live site therefore needs `og` (`scripts/setup.sh --og` installs it); without it a family's `family.json` answers 500, its `pedigree.svg` answers 503, and the run list marks each family unreadable. A family file that cannot be read still gives no page and an unreadable family.
- The local genome viewer runs on `og` and no longer needs `python3` on the host. `scripts/owngenome-view.sh` starts `og view serve` (through `bin/og`, or `OG`), which serves the same page, config and byte ranges on 127.0.0.1 as `assets/viewer/serve.py` did. Two requests it answered before are now refused. A locus whose end comes before its start (`chr1:13000-12000`) stops the script with exit 2 and the reason, instead of opening a view igv.js cannot show. A request with a `Forwarded`, `X-Forwarded-*` or `X-Real-IP` header gets 403: the viewer has no password, so a reverse proxy in front of it would hand the sample to anyone who reaches the proxy; an ssh port forward still works. The default SV track is now Manta's diploid SVs (step 4), else step 22's consensus, which keeps only the calls two callers agree on. `docs/viewer.md` says that every account on the machine can reach 127.0.0.1. No option of the script, file or output name changes; `og view serve` takes the flags `serve.py` took, plus `--assets`, the page's folder. The live site's viewer also opens Manta's diploid SVs first; the rest of it is unchanged until its server moves to `og`. Part of #411 (plat-11, plat-12).
- Step 22's SV consensus no longer counts a record a caller did not call as a second caller. Before, every PASS record went to SURVIVOR, so a PASS Delly record genotyped `0/0`, a Delly call whose sample filter (`FT`) says `LowQual`, or a CNVpytor segment no quality rule had read sat beside a Manta-only call and made it read "2 callers". A new verb, `og sv survivor-prep --caller NAME IN OUT`, now writes each caller's input for both the script and the Nextflow `SURVIVOR_PREP`, in place of the bcftools and awk they each carried. A record votes when its FILTER and its sample `FT` are `PASS` or `.` and its genotype is not reference only (`0/0`, `0|0`, haploid `0`, `0/.`); a no-call (`./.`) and a sites-only record still vote. A CNVpytor call votes when its e-value is below 0.01 and its share of MAPQ 0 reads below 0.5, the rule step 05 already applies when it adds CNVpytor's calls; the VCF step 22 makes from CNVpytor's table now carries the table's e-value, `q0` and `pN` as `pytorP1`, `pytorQ0` and `pytorPN`, so the rule reads both inputs. A header without `GT` or without these tags no longer matters. Step 18's closing hint and `docs/18-cnvpytor.md` gave e-value below 0.05 and size over 1 kb; they now give the same rule. What changes in the output: `sv_merged/inputs/<caller>.vcf` holds only the records that vote, and the consensus can hold fewer records. No file, column or option is renamed or removed. Part of #411 (sv-05, sv-06, sv-09, sv-10, sv-11, sv-40).
Expand Down
5 changes: 3 additions & 2 deletions assets/pgx_contraindications.tsv
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@
# drugs does not follow).
# Gene: the HGNC symbol, as ClinVar's GENEINFO writes it.
# Drug: the drug as CPIC names it.
# Names: the first words a medication list may use for it, comma-separated,
# lower case; a drug on the list is marked in the report.
# Names: the words a medication list may use for it, comma-separated, lower
# case. Every word of a medication line is matched, the second drug of a
# combination product too; a drug on the list is marked in the report.
# CPIC_level: the pair's CPIC level, printed as provisional.
# Note: what the label says.
# Label_source: the FDA label (DailyMed) the note quotes.
Expand Down
Loading