Skip to content

Commit

Permalink
Merge branch 'release/0.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
rhshah committed Feb 28, 2023
2 parents ba09ad4 + ad2ea07 commit 1e8aa88
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/compile_reads.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ compile_reads <- function(
}

# data from DMP -----------------------------------------------------------
DMP.key <- fread(dmp.key.path)
DMP.key <- as.data.table(read.csv(dmp.key.path, header = FALSE, sep = ","))
if (any(!master.ref[grepl("^P-", dmp_patient_id)]$dmp_patient_id %in% gsub("-T..-IH.|-T..-IM.|-T..-XS", "", DMP.key[grepl("IH|IM|XS", V1)]$V1))) {
stop(paste0(
"These DMP IDs are not found in DMP key file: ",
Expand Down
2 changes: 1 addition & 1 deletion R/compile_reads_all.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ compile_reads_all <- function(master.ref,
}

# data from DMP -----------------------------------------------------------
DMP.key <- fread(dmp.key.path)
DMP.key <- as.data.table(read.csv(dmp.key.path, header = FALSE, sep = ","))
if (any(!master.ref[grepl("^P-", dmp_patient_id)]$dmp_patient_id %in% gsub("-T..-IH.|-T..-IM.", "", DMP.key[grepl("IH|IM", V1)]$V1))) {
message(paste0(
"These DMP IDs are not found in DMP key file: ",
Expand Down

0 comments on commit 1e8aa88

Please sign in to comment.