Skip to content

Commit

Permalink
Add get_actual_path
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Jan 24, 2022
1 parent 3ed7507 commit bc23b54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/magma_read_covar_out.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#' @keywords internal
magma_read_covar_out <- function(out_prefix){
path <- sprintf("%s.gsa.out", out_prefix)
path <- get_actual_path(path)
res <- read.table(file = fix_path(path),
header = TRUE,
stringsAsFactors = FALSE)
Expand Down
2 changes: 2 additions & 0 deletions R/magma_read_sets_out.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
magma_read_sets_out <- function(out_prefix,
verbose = TRUE){
sets.out <- sprintf("%s.sets.out",out_prefix)
sets.out <- get_actual_path(sets.out)
if(file.exists(sets.out)){
messager("Reading sets out info from .set.out file.",
v=verbose)
Expand All @@ -20,6 +21,7 @@ magma_read_sets_out <- function(out_prefix,
v=verbose)
#### Not totally sure if this is right
path <- sprintf("%s.gsa.out", out_prefix)
path <- get_actual_path(path)
res <- utils::read.table(file = fix_path(path),
header = TRUE,
stringsAsFactors = FALSE)
Expand Down

0 comments on commit bc23b54

Please sign in to comment.