Skip to content

Commit

Permalink
fix bug with unknown classifications
Browse files Browse the repository at this point in the history
  • Loading branch information
sigven committed Jan 30, 2024
1 parent 7f1c1ef commit 0f2b046
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 1.5.5
current_version = 1.5.4
commit = True
tag = False

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
name: pkgdown

env:
VERSION: '1.5.5'
VERSION: '1.5.4'
jobs:
pkgdown:
if: "startsWith(github.event.head_commit.message, 'Bump version:')"
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: pharmOncoX
Type: Package
Title: Molecularly targeted cancer drugs and biomarkers
Version: 1.5.5
Version: 1.5.4
Date: 2024-01-30
Authors@R:
c(person(given = "Sigve",
Expand Down
9 changes: 5 additions & 4 deletions R/helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ get_targeted_drugs <- function(cache_dir = NA) {


onco_drugs <-
pharmOncoX::get_drugs(treatment_category = c("targeted_therapy_classified",
"targeted_therapy_unclassified",
"hormone_therapy_classified"),
pharmOncoX::get_drugs(
treatment_category = c("targeted_therapy_classified",
"targeted_therapy_unclassified",
"hormone_therapy_classified"),
cache_dir = cache_dir,
drug_classified_cancer = TRUE,
drug_cancer_indication = TRUE,
Expand Down Expand Up @@ -301,7 +302,7 @@ get_targeted_drugs <- function(cache_dir = NA) {
all_tt_records <- all_tt_records |>
dplyr::filter(!(.data$atc_treatment_category == "cancer_unclassified" &
.data$drug_cancer_relevance == "by_cancer_condition_otp" &
.data$drug_frac_cancer_indications < 0.7 &
.data$drug_frac_cancer_indications < 0.6 &
.data$approved_indication == F)) |>
dplyr::filter(!stringr::str_detect(.data$symbol,"^RRM"))

Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion data-raw/drug_utilities.R
Original file line number Diff line number Diff line change
Expand Up @@ -2663,7 +2663,7 @@ assign_drug_category <- function(drug_df = NULL,
!is.na(target_symbol) &
!is.na(atc_code_level3) &
stringr::str_detect(
atc_code_level3, "(\\|L01XX[A-J])|(^L01XX[A-J])"
atc_code_level3, "(\\|L01XX[A-J]?)|(^L01XX[A-J]?)"
) ~ "cancer_targeted_therapy",
!is.na(target_symbol) &
!is.na(atc_code_level3) &
Expand Down
4 changes: 2 additions & 2 deletions inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ citEntry(
title = "pharmOncoX: Targeted and non-targeted anti-cancer drugs and drug regimens",
author = "Sigve Nakken",
year = "2023",
note = "R package version 1.5.5",
note = "R package version 1.5.4",
url = "https://github.com/sigven/pharmOncoX",
textVersion = paste("Nakken S. ","(2023)",
" pharmOncoX: Targeted and non-targeted anti-cancer drugs and drug regimens.",
" R package version 1.5.5.",
" R package version 1.5.4.",
" (https://github.com/sigven/pharmOncoX)")
)

0 comments on commit 0f2b046

Please sign in to comment.