Skip to content

Commit

Permalink
Update motif_enrichment to use correct path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomrrr1 committed Apr 26, 2024
1 parent e358fd0 commit d5aba61
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/motif_enrichment.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ motif_enrichment <- function(peak_input,
database = list(motif),
outdir = out_dir)

seq <- read.table("sequences.tsv", header = TRUE)
seq_path <- file.path(out_dir, "sequences.tsv")
seq <- read.table(seq_path, header = TRUE)
cleaned_ids <- seq$seq_ID[!grepl("_shuf_1", seq$seq_ID)]

return(
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-motif_enrichment.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
test_that("list outputted by peak_proportion function", {
test_that("list outputted by motif_enrichment function", {
data("creb_peaks", package = "MotifStats")
data("creb_motif", package = "MotifStats")

Expand Down

0 comments on commit d5aba61

Please sign in to comment.