Skip to content

Commit

Permalink
Merge pull request #83 from umccr/hypermutation
Browse files Browse the repository at this point in the history
change condition hypermutated to >500k sage variant
  • Loading branch information
qclayssen authored Nov 24, 2024
2 parents 68cf0d0 + f70b99e commit 23cc8b2
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions inst/rmd/umccrise/cancer_report.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,8 @@ summarise_sigs <- function(mut_sig_contr) {
snv_summary_counts <- params$somatic_snv_summary |>
jsonlite::read_json()
# NOTE(SW): hypermutated status is determine indirectly by different counts between 'sage' and
# 'annotated' since this indicates that the bolt hypermutated logic evaluated as true and applied
# variant selection
hypermutated <- snv_summary_counts$sage != snv_summary_counts$annotated
# NOTE(QC): samples are considered hypermutated if they have more than 500k variant
hypermutated <- snv_summary_counts$annotated > 500000
snv_summary <- snv_summary_counts |>
unlist() |>
Expand Down Expand Up @@ -355,8 +352,7 @@ qc_summary_all <- dplyr::tribble(
~n, ~variable, ~value, ~details,
4, "Hypermutated", ifelse(hypermutated, "TRUE", "FALSE"),
ifelse(hypermutated, glue::glue(
"More than 500K SNVs detected (including non-PASS), priority regions and/or variants ",
"selected for processing.",
"More than 500K SNVs detected (including non-PASS)",
), ""),
5, "MutSigs (Old)", glue::glue("{summarise_sigs(sigs_snv_2015)}"),
"2015 COSMIC (https://cancer.sanger.ac.uk/cosmic/signatures_v2.tt)",
Expand Down

0 comments on commit 23cc8b2

Please sign in to comment.