Skip to content

Commit 8d11270

Browse files
committed
update NEWS, changelog, Zenodo links
1 parent 27ed060 commit 8d11270

File tree

7 files changed

+52
-16
lines changed

7 files changed

+52
-16
lines changed

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ PCGR originates from the [Norwegian Cancer Genomics Consortium (NCGC)](https://c
2828

2929
### Top News
3030

31+
- *September 17th 2025:* **2.2.5 release**
32+
- fixing missing support for dp/af filtering, adding ad filtering
33+
- skip processing when no PASS variants detected in input VCF
34+
- more streamlined plotting functions in quarto report templates
35+
- [CHANGELOG](https://sigven.github.io/pcgr/articles/CHANGELOG.html)
36+
3137
- *September 8th 2025:* **2.2.4 release**
3238
- various minor bug fixes, addition of `--sex` option for sex-adjusted CNA annotation
3339
- [CHANGELOG](https://sigven.github.io/pcgr/articles/CHANGELOG.html)
@@ -87,7 +93,7 @@ PCGR originates from the [Norwegian Cancer Genomics Consortium (NCGC)](https://c
8793

8894
### Example reports
8995

90-
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15068347.svg)](https://doi.org/10.5281/zenodo.15068347)
96+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17140659.svg)](https://doi.org/10.5281/zenodo.17140659)
9197

9298
### Why use PCGR?
9399

pcgrr/R/utils.R

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -845,51 +845,73 @@ filter_read_support <- function(vcf_df, config = NULL) {
845845
if("DP_TUMOR" %in% colnames(vcf_df)){
846846
if (!any(is.na(vcf_df$DP_TUMOR)) &
847847
!is.null(config$somatic_snv$allelic_support$tumor_dp_min)) {
848+
#cat("DP_TUMOR - Number of rows before filtering - ", nrow(vcf_df), "\n")
849+
#cat("DP_TUMOR - Filtering criteria used: ", config$somatic_snv$allelic_support$tumor_dp_min, "\n")
848850
vcf_df <- dplyr::filter(
849851
vcf_df,
850852
.data$DP_TUMOR >= config$somatic_snv$allelic_support$tumor_dp_min)
853+
#cat("DP_TUMOR - Number of rows after filtering: ", nrow(vcf_df), "\n")
851854
}
852855
}
853856
if("VAF_TUMOR" %in% colnames(vcf_df)){
854857
if (!any(is.na(vcf_df$VAF_TUMOR)) &
855858
!is.null(config$somatic_snv$allelic_support$tumor_af_min)) {
859+
#cat("VAF_TUMOR - Number of rows before filtering - ", nrow(vcf_df), "\n")
860+
#cat("VAF_TUMOR - Filtering criteria used: ", config$somatic_snv$allelic_support$tumor_af_min, "\n")
856861
vcf_df <- dplyr::filter(
857862
vcf_df,
858863
.data$VAF_TUMOR >= config$somatic_snv$allelic_support$tumor_af_min)
864+
#cat("VAF_TUMOR - Number of rows after filtering: ", nrow(vcf_df), "\n")
859865
}
860866
}
861867
if("AD_TUMOR" %in% colnames(vcf_df)){
868+
862869
if (!any(is.na(vcf_df$AD_TUMOR)) &
863870
!is.null(config$somatic_snv$allelic_support$tumor_ad_min)) {
871+
#cat("AD_TUMOR - Number of rows before filtering - ", nrow(vcf_df), "\n")
872+
#cat("AD_TUMOR - Filtering criteria used: ", config$somatic_snv$allelic_support$tumor_ad_min, "\n")
864873
vcf_df <- dplyr::filter(
865874
vcf_df,
866875
.data$AD_TUMOR >= config$somatic_snv$allelic_support$tumor_ad_min)
876+
#cat("AD_TUMOR - Number of rows after filtering: ", nrow(vcf_df), "\n")
867877
}
878+
868879
}
869880

870881
if("VAF_CONTROL" %in% colnames(vcf_df)){
882+
871883
if (!any(is.na(vcf_df$VAF_CONTROL)) &
872884
!is.null(config$somatic_snv$allelic_support$control_af_max)) {
885+
#cat("VAF_CONTROL - Number of rows before filtering - ", nrow(vcf_df), "\n")
886+
#cat("VAF_CONTROL - Filtering criteria used: ", config$somatic_snv$allelic_support$control_af_max, "\n")
873887
vcf_df <- dplyr::filter(
874888
vcf_df,
875889
.data$VAF_CONTROL <= config$somatic_snv$allelic_support$control_af_max)
890+
#cat("VAF_CONTROL - Number of rows after filtering: ", nrow(vcf_df), "\n")
876891
}
892+
877893
}
878894
if("DP_CONTROL" %in% colnames(vcf_df)){
879895
if (!any(is.na(vcf_df$DP_CONTROL)) &
880896
!is.null(config$somatic_snv$allelic_support$control_dp_min)) {
897+
#cat("Number of rows before filtering - ", nrow(vcf_df), "\n")
898+
#cat("DP_CONTROL - Filtering criteria used: ", config$somatic_snv$allelic_support$control_dp_min, "\n")
881899
vcf_df <- dplyr::filter(
882900
vcf_df,
883901
.data$DP_CONTROL >= config$somatic_snv$allelic_support$control_dp_min)
902+
#cat("DP_CONTROL - Number of rows after filtering: ", nrow(vcf_df), "\n")
884903
}
885904
}
886905

887906
if("AD_CONTROL" %in% colnames(vcf_df)){
888907
if (!any(is.na(vcf_df$AD_CONTROL)) &
889908
!is.null(config$somatic_snv$allelic_support$control_ad_max)) {
909+
#cat("AD_CONTROL - Number of rows before filtering - ", nrow(vcf_df), "\n")
910+
#cat("AD_CONTROL - Filtering criteria used: ", config$somatic_snv$allelic_support$control_ad_max, "\n")
890911
vcf_df <- dplyr::filter(
891912
vcf_df,
892913
.data$AD_CONTROL <= config$somatic_snv$allelic_support$control_ad_max)
914+
#cat("AD_CONTROL - Number of rows after filtering: ", nrow(vcf_df), "\n")
893915
}
894916
}
895917

pcgrr/inst/templates/pcgr_quarto_report/cna.qmd

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ Gene symbols are color-coded according to their strength of association to cance
365365
366366
367367
dt_other_oncogenic <- pcgrr::get_oncogenic_cna_events(
368-
cna_df_display = pcg_report[["content"]][["cna"]][["callset"]][["variant_display"]])
368+
cna_df_display =
369+
pcg_report[["content"]][["cna"]][["callset"]][["variant_display"]])
369370
370371
dt_other_oncongenic_cna <- DT::datatable(
371372
dt_other_oncogenic,

pcgrr/inst/templates/pcgr_quarto_report/documentation.qmd

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -57,24 +57,25 @@ for(i in 1:NROW(ref_datasets)){
5757
s <- ""
5858
if(is.na(version)){
5959
if(!is.na(license_url)){
60-
s <- paste0(" * [", source_full, "](", url, ") - ", description, " - [",
61-
license,"](", license_url, ")")
60+
s <- glue::glue(
61+
" * [{source_full}]({url}) - {description} - [{license}]({license_url})")
6262
}else{
63-
s <- paste0(" * [", source_full, "](", url, ") - ", description, " - ",
64-
license)
63+
s <- glue::glue(
64+
" * [{source_full}]({url}) - {description} - {license}")
6565
}
6666
}else{
6767
if(!is.na(license_url)){
6868
if(source == "cgc" | source == "gepa" | source == "dbnsfp"){
69-
s <- paste0(" * [", source_full, "](", url, ") - ", description, " (<b>", version, "</b>)",
70-
" - [<b>", license,"</b>](", license_url, ")")
69+
s <- glue::glue(
70+
" * [{source_full}]({url}) - {description} (<b>{version}</b>) - [<b>{license}</b>]({license_url})")
7171
}else{
72-
s <- paste0(" * [", source_full, "](", url, ") - ", description, " (<b>", version, "</b>)",
73-
" - [", license,"](", license_url, ")")
72+
s <- glue::glue(
73+
" * [{source_full}]({url}) - {description} (<b>{version}</b>) - [{license}]({license_url})")
7474
}
7575
}else{
76-
s <- paste0(" * [", source_full, "](", url, ") - ", description, " (<b>", version, "</b>)",
77-
" - ", license)
76+
s <- glue::glue(
77+
" * [{source_full}]({url}) - {description} (<b>{version}</b>) - {license}"
78+
)
7879
}
7980
}
8081
if(s != ""){

pcgrr/pkgdown/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ PCGR originates from the [Norwegian Cancer Genomics Consortium (NCGC)](https://c
2929

3030
### Top News
3131

32+
- *September 17th 2025:* **2.2.5 release**
33+
- fixed failing support for AD/AF filtering, adding AD filtering
34+
- skip processing when no PASS variants detected in input VCF
35+
- more streamlined plotting functions in quarto report templates
36+
- [CHANGELOG](https://sigven.github.io/pcgr/articles/CHANGELOG.html)
37+
3238
- *September 8th 2025:* **2.2.4 release**
3339
- various minor bug fixes, addition of `--sex` option for sex-adjusted CNA annotation
3440
- [CHANGELOG](https://sigven.github.io/pcgr/articles/CHANGELOG.html)
@@ -88,7 +94,7 @@ PCGR originates from the [Norwegian Cancer Genomics Consortium (NCGC)](https://c
8894

8995
## Example reports
9096

91-
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15068347.svg)](https://doi.org/10.5281/zenodo.15068347)
97+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17140659.svg)](https://doi.org/10.5281/zenodo.17140659)
9298

9399
## Why use PCGR?
94100

pcgrr/vignettes/CHANGELOG.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ pdiakumis <- user("pdiakumis")
4747
```
4848

4949
## v2.2.5
50-
- Date: **2025-09-15**
50+
- Date: **2025-09-17**
5151
- fixed bug in filtering variants wrt depth/allelic support (`r issue(268)`)
5252
- added new options `--tumor_ad_min` and `--control_ad_max` to set minimum
5353
number of reads supporting alt allele in tumor (maximum allowed in control samples)
5454
for a variant to be considered (also `--tmb_ad_min` for TMB calculation)
5555
- options for allelic support/depth now defaults to `None` if not provided by user
5656
- omit processing when zero PASS variants found in input VCF (`r issue(256)`)
57-
- added gnomAD population frequencies from genome-sequenced samples to VEP annotation (for use with CPSR, option `--af_gnomadg` in VEP)
57+
- added gnomAD population frequencies from genome-sequenced samples to VEP annotation (primarily for use with CPSR, option `--af_gnomadg` in VEP)
5858
- populated patient/sample sex status in HTML report
5959
- avoid showing allelic support settings that are not actively used/set by the user
6060
- similarly for TMB-dedicated filters

pcgrr/vignettes/output.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ by the user. The following sections may be included in the report:
6060

6161
#### Example reports
6262

63-
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.15068347.svg)](https://doi.org/10.5281/zenodo.15068347)
63+
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.17140659.svg)](https://doi.org/10.5281/zenodo.17140659)
6464

6565

6666
### SNVs/InDels

0 commit comments

Comments
 (0)