Skip to content

Sv call esvee oncoanalyser v2.0.0 - #88

Merged
qclayssen merged 23 commits into
mainfrom
sv_call_esvee_oncoanalyser_v2
Jun 5, 2025
Merged

qclayssen merged 23 commits into
mainfrom
sv_call_esvee_oncoanalyser_v2

Conversation

@qclayssen

@qclayssen qclayssen commented May 12, 2025 •

Copy link
Copy Markdown
Contributor
  • Remove SR, PR, IC and associated tags specific to GRIPSS
  • Remove SR and PR plots
  • Add VF, SB, SF eSVee tags in summary tables
  • Remove CHORD for the moment slack thread
  • Update parsing and matching breakend
  • remove MSI that is always 0 since purple 4.1 sash#7
  • Filter PoN SV in cancer report tables sash#8

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the structural variant calling parameters by replacing GRIPSS-specific tags and plots with new eSVee metrics. Key changes include:

  • Changing the structural variant caller in the cancer report from "gridss" to "manta" and removing SR/PR plots.
  • Removing SR, PR, IC-related columns and computations from tag definitions and processing functions in R/sv.R, while introducing VF, SB, and SF columns.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
inst/rmd/umccrise/cancer_report.Rmd Updated sv.caller parameter and removed SR/PR plot code
R/sv.R Removed SR, PR, IC columns and computations; added VF, SB, SF columns in multiple sections
Comments suppressed due to low confidence (2)

R/sv.R:317

  • Since the SR and PR metrics are being removed, verify that all aggregations using SR/PR fields (e.g., 'SR_PR_ref', 'SR_PR_sum', 'SR_PR_asm_sum') are not referenced in downstream processes or tests.
"SR_PR_ref" = paste0(.data$SR_ref, ",", .data$PR_ref),

inst/rmd/umccrise/cancer_report.Rmd:122

  • Ensure that the change in structural variant caller from 'gridss' to 'manta' is fully supported by all downstream components and that necessary documentation updates accompany this change.
sv.caller = "manta",

@pdiakumis pdiakumis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a comment about CHORD handling of eSVee calls, LGTM otherwise.

Comment thread inst/rmd/umccrise/cancer_report.Rmd Outdated
vcf.snv = params$somatic_snv_vcf,
vcf.sv = params$somatic_sv_vcf,
sv.caller = "gridss",
sv.caller = "manta",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surprised that this works with the Hartwig SV calls (eSVee?). Noting also that CHORD under the UMCUGenetics repo has been deprecated. Would be good to get a few CHORD results replicated but I understand we're a bit short on time.
Can you take a look at the code in https://github.com/UMCUGenetics/mutSigExtractor/blob/master/R/extractSigsSv.R#L23 and see if those fields that are extracted in the manta case are in the SV VCF you're parsing?
Also https://github.com/UMCUGenetics/mutSigExtractor/blob/master/R/extractSigsSv.R#L205 for potential ramifications.

@scwatts scwatts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks again for this work! Could you please post the output of COLO829 here for review too?

On the changed SV statistics, is there a reason we're now including strand bias? I would have thought we'd switch to DF (count of discordant fragments with reads either side BE) and SF (fragments with one read overlapping BE); in mind these correspond to 'paired reads' and 'split reads' respectively

@qclayssen

Copy link
Copy Markdown
Contributor Author

On the changed SV statistics, is there a reason we're now including strand bias? I would have thought we'd switch to DF (count of discordant fragments with reads either side BE) and SF (fragments with one read overlapping BE); in mind these correspond to 'paired reads' and 'split reads' respectively

I wasn't confident with the different metrics, but that make sense. I can even reintroduce the plot then

@qclayssen

Copy link
Copy Markdown
Contributor Author

Thanks again for this work! Could you please post the output of COLO829 here for review too?

Here is a link to a cancer report with the latest version:
s3://umccr-temp-dev/temp_data/COLO829/sash/20250513o43p5tb2_oob/results/COLO829_COLO829v003T/COLO829v003T.cancer_report.html

@qclayssen
qclayssen requested review from pdiakumis and scwatts June 4, 2025 01:08

@pdiakumis pdiakumis left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you!

Comment thread R/sv.R
Comment on lines +175 to +181
pon_ids <- sv_with_pon_filter |>
dplyr::filter(.data$has_pon) |>
dplyr::select(.data$ID_char, .data$MATEID_char) |>
tidyr::pivot_longer(everything(), values_to = "id_to_filter") |>
dplyr::filter(.data$id_to_filter != "") |>
dplyr::pull(.data$id_to_filter) |>
unique()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think everything() was working before because in the cancer report we're pulling in dplyr.

 pon_ids <- sv_with_pon_filter |>
    dplyr::filter(.data$has_pon) |>
    dplyr::select("ID_char", "MATEID_char") |>
    tidyr::pivot_longer(dplyr::everything(), values_to = "id_to_filter") |>
    dplyr::filter(.data$id_to_filter != "") |>
    dplyr::pull("id_to_filter") |>
    unique()

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread R/sv.R Resolved
Comment thread R/sv.R Resolved
@qclayssen qclayssen changed the title Sv call esvee oncoanalyser v2 Sv call esvee oncoanalyser v2.0.0 Jun 4, 2025

@scwatts scwatts left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM at a high level!

Comment thread NEWS.md Resolved
@qclayssen
qclayssen merged commit 2cb2f43 into main Jun 5, 2025
@qclayssen
qclayssen deleted the sv_call_esvee_oncoanalyser_v2 branch June 5, 2025 05:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants