Skip to content

Commit

Permalink
HTTPS clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-Drucker committed Aug 13, 2024
1 parent 09e825d commit ac3ba7e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 29 deletions.
32 changes: 4 additions & 28 deletions R/read_study_design_from_DMS.R
Original file line number Diff line number Diff line change
Expand Up @@ -104,34 +104,10 @@ read_study_design_from_DMS <- function(data_package_num,
)

# Files to search for
study_design_files <- paste0("^", names(required_cols), ".txt$")


if(.Platform$OS.type == "unix" | useHTTP){
local_folder <- "~/temp_study_des"

remote_folder <- gsub("\\\\","/", dataPkgReport$share_path)
remote_folder <- gsub("(", "\\(", remote_folder, fixed = TRUE)
remote_folder <- gsub(")", "\\)", remote_folder, fixed = TRUE)

# Get paths to each of the study design tables
file_paths <- lapply(study_design_files, function(file_i) {
get_url_from_dir_and_file(remote_folder, file_i)
})

} else if (.Platform$OS.type == "windows") {
local_folder <- dataPkgReport$share_path

# Get paths to each of the study design tables
file_paths <- lapply(study_design_files, function(file_i) {
list.files(path = local_folder,
pattern = file_i,
full.names = TRUE)
})

} else {
stop("Unknown OS type.")
}
file_paths <- file.path(
dataPkgReport$web_path,
glue::glue("{names(required_cols)}.txt")
)

names(file_paths) <- names(required_cols)

Expand Down
2 changes: 1 addition & 1 deletion man/read_MSstats_from_MSFragger_job.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ac3ba7e

Please sign in to comment.