Skip to content

Commit

Permalink
remove browser()
Browse files Browse the repository at this point in the history
  • Loading branch information
burlab committed Jun 21, 2024
1 parent bc9c680 commit 045c764
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions R/read-msdata.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ import_analysis <- function(data, path, import_function, file_ext) {
file_paths <- fs::path_tidy(path)
else
file_paths <- fs::dir_ls(path, glob = file_ext)
#browser()


if(!all(fs::file_exists(file_paths))) stop("One or more given files do not exist. Please check file paths.")
if(any(duplicated(file_paths))) stop("One or more given files are replicated. Please check file paths.")

Expand Down Expand Up @@ -131,7 +132,6 @@ read_masshunter_csv <- function(path, expand_qualifier_names = TRUE, silent = FA
int_quantifiers <- NULL


browser()

# if parameter set, then use prefix the feature name and modify the qualifier name
if (!expand_qualifier_names) {
Expand Down Expand Up @@ -175,7 +175,6 @@ read_masshunter_csv <- function(path, expand_qualifier_names = TRUE, silent = FA
colnames(datWide) <- paste(datWide[2, ], datWide[1, ], sep = "\t")
datWide <- datWide[-1:-2, ]

browser()
# prefix columns from Method and Results Group
datWide <- datWide |>
dplyr::rename_with(.fn = ~ stringr::str_c("Method_",.x), .cols = dplyr::ends_with(" Method")) |>
Expand Down

0 comments on commit 045c764

Please sign in to comment.