Skip to content

Commit

Permalink
Merge pull request #225 from MoTrPAC/adjust/details
Browse files Browse the repository at this point in the history
Minor adjustment: new assays, fix package conflicts
  • Loading branch information
biodavidjm authored Feb 2, 2024
2 parents d916a28 + 5d268be commit fa4c690
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ import(progress)
import(purrr)
import(stringr)
import(tidyr)
import(utils)
import(viridis)
importFrom(data.table,as.data.table)
importFrom(data.table,fread)
Expand All @@ -81,3 +80,7 @@ importFrom(readr,read_lines)
importFrom(scales,percent)
importFrom(stats,median)
importFrom(stats,reorder)
importFrom(utils,URLencode)
importFrom(utils,read.csv)
importFrom(utils,read.delim)
importFrom(utils,write.table)
2 changes: 1 addition & 1 deletion R/misc.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#' @importFrom stats median reorder
#' @import stringr
#' @import tidyr
#' @import utils
#' @importFrom utils URLencode read.csv read.delim write.table
#' @import viridis
#____________________________________________________________________________

Expand Down
2 changes: 1 addition & 1 deletion R/olink_qc.R
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ write_olink_releases <- function(input_results_folder,
phase_folder_release <- phase_details
}

output_folder <- file.path(folder_root, folder_name, phase_folder_release, "prot-ol", folder_tissue, folder_assay)
output_folder <- file.path(folder_root, folder_name, phase_folder_release, "proteomics-targeted", folder_tissue, folder_assay)

if(!dir.exists(file.path(output_folder))){
dir.create(file.path(output_folder), recursive = TRUE)
Expand Down
2 changes: 1 addition & 1 deletion R/validations.R
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ check_viallabel_dmaqc <- function(vl_submitted,
validate_assay <- function(input_results_folder){

assay <- stringr::str_extract(string = input_results_folder,
pattern = "(?<=T\\d{2}/)(IONPNEG|RPNEG|RPPOS|HILICPOS|LRPPOS|LRPNEG|3HIB|AA|AC_DUKE|ACOA|BAIBA|CER_DUKE|CONV|KA|NUC|OA|SPHM|OXYLIPNEG|ETAMIDPOS|AC_MAYO|AMINES|CER_MAYO|TCA|IMM_CRT|IMM_GLC|IMM_INS|PROT_PH|PROT_PR|PROT_AC|PROT_UB|PROT_OL)")
pattern = "(?<=T\\d{2}/)(IONPNEG|RPNEG|RPPOS|HILICPOS|LRPPOS|LRPNEG|3HIB|AA|AC_DUKE|ACOA|BAIBA|CER_DUKE|CONV|KA|NUC|OA|SPHM|OXYLIPNEG|ETAMIDPOS|AC_MAYO|AMINES|CER_MAYO|TCA|IMM_CRT|IMM_GLC|IMM_INS|PROT_PH|PROT_PR|PROT_AC|PROT_UB|PROT_OL|PROT_OX)")
if(is.na(assay)){
stop("ASSAY not found in the folder structure")
}else{
Expand Down

0 comments on commit fa4c690

Please sign in to comment.