...
|
...
|
@@ -296,7 +296,7 @@ GDCquery_clinic <- function(
|
296
|
296
|
if("treatments" %in% colnames(df)){
|
297
|
297
|
treatments <- rbindlist(df$treatments,fill = TRUE)
|
298
|
298
|
df$treatments <- NULL
|
299
|
|
- treatments$submitter_id <- gsub("_treatment(_[0-9])?","", treatments$submitter_id)
|
|
299
|
+ treatments$submitter_id <- gsub("_treatment(_[0-9])?|_treatment([0-9])?","", treatments$submitter_id)
|
300
|
300
|
treatments <- treatments[,-c("updated_datetime", "state", "created_datetime")]
|
301
|
301
|
|
302
|
302
|
# we have now two types of treatment
|
...
|
...
|
@@ -402,7 +402,8 @@ GDCquery_clinic <- function(
|
402
|
402
|
df$project <- project
|
403
|
403
|
df <- df %>% dplyr::relocate(project)
|
404
|
404
|
}
|
405
|
|
- if(nrow(results) != nrow(df)){
|
|
405
|
+
|
|
406
|
+ if (nrow(results) != nrow(df)) {
|
406
|
407
|
stop("Error: API returned more information")
|
407
|
408
|
}
|
408
|
409
|
|