Skip to content

Add plotting options made in gpgr - #13

Merged
qclayssen merged 9 commits into
mainfrom
sigrap-gpgr-updates
Oct 16, 2025
Merged

qclayssen merged 9 commits into
mainfrom
sigrap-gpgr-updates

Conversation

@qclayssen

@qclayssen qclayssen commented Jul 9, 2025 •

Copy link
Copy Markdown
Contributor

Summary

Integrates rainfall and strand bias plotting capabilities from gpgr into the sigrap MutationalPatterns workflow, making them available as optional features.

Changes

  • Added rainfall and strand_bias boolean parameters to sig_workflow_run(), both default to FALSE
  • Implemented sig_plot_rainfall() function
  • Implemented sig_plot_strand_bias()
  • Updated CLI to support --rainfall and --strand-bias flags

PR#91 gpgr

@qclayssen qclayssen self-assigned this Jul 9, 2025
@qclayssen qclayssen added the enhancement New feature or request label Jul 9, 2025

@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.

Thank you, looks good to me!

Comment thread R/mutationalpatterns.R Outdated
Comment on lines +416 to +422
if (!requireNamespace("TxDb.Hsapiens.UCSC.hg38.knownGene", quietly = TRUE)) {
stop("TxDb.Hsapiens.UCSC.hg38.knownGene package not available. ",
"Install with: BiocManager::install('TxDb.Hsapiens.UCSC.hg38.knownGene')")
}

library("TxDb.Hsapiens.UCSC.hg38.knownGene", character.only = TRUE)
genes_list <- GenomicFeatures::genes(TxDb.Hsapiens.UCSC.hg38.knownGene)

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.

This is fine, but you can probably store TxDb.Hsapiens.UCSC.hg38.knownGene in a variable instead.
Btw this pkg doesn't appear under Suggests in DESCRIPTION, not sure you'd like to add it there. It's in the conda recipe: https://github.com/umccr/sigrap/blob/main/conda/recipe/meta.yaml#L37

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

i added a variable and description in this commit

@qclayssen
qclayssen merged commit e6e54ef into main Oct 16, 2025
@qclayssen
qclayssen deleted the sigrap-gpgr-updates branch October 16, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants