Skip to content

Commit

Permalink
add dir path
Browse files Browse the repository at this point in the history
  • Loading branch information
ivokwee committed Dec 30, 2024
1 parent e53b04a commit c58cc47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/pgx-read.R
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,9 @@ read_files <- function(dir = ".", pattern = NULL) {
file2 <- head(grep("sample", ff, value = TRUE), 1)
file3 <- head(grep("contrast|comparison", ff, value = TRUE), 1)
counts <- samples <- contrasts <- NULL
if (length(file1)) counts <- read_counts(file1)
if (length(file2)) samples <- read_samples(file2)
if (length(file3)) contrasts <- read_contrasts(file3)
if (length(file1)) counts <- read_counts(file.path(dir,file1))
if (length(file2)) samples <- read_samples(file.path(dir,file2))
if (length(file3)) contrasts <- read_contrasts(file.path(dir,file3))

list(
counts = counts,
Expand Down

0 comments on commit c58cc47

Please sign in to comment.