Skip to content

Commit

Permalink
Fix vignette
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Nov 9, 2023
1 parent 2cf8051 commit dd81914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/merge_results.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ merge_results <- function(save_dir=NULL,
if(is.null(res_files)){
if(is.null(save_dir)) stop("Must provided save_dir when res_files=NULL.")
res_files <- list.files(path = save_dir,
pattern = ".rds$",
pattern = "\\.rds$",
ignore.case = TRUE,
full.names = TRUE)
names(res_files) <- gsub("_"," ",tolower(gsub(".rds$","",res_files)))
Expand Down
4 changes: 2 additions & 2 deletions vignettes/MultiEWCE.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ ctd <- load_example_ctd()
list_names <- unique(gene_data$hpo_id)[seq(10)]
reps <- 10 # in practice would use more reps
cores <- 1 # in practice would use more cores
save_dir <- tempdir()
save_dir <- file.path(tempdir())
save_dir_tmp <- file.path(save_dir,"results")
```

Expand Down Expand Up @@ -131,7 +131,7 @@ methods::show(plot1)
## merge_results
If you have a results directory of individual EWCE results but do not have the merged dataframe of all results, you can call the `merge_results` function manually. The `save_dir` argument is the path to your results directory and the `list_name_column` argument is the name of the column containing gene list names. In this case we used "Phenotype" as this column name when we generated the results.

```{r merge}
```{r merge, eval=FALSE}
all_results_2 <- MultiEWCE::merge_results(save_dir = save_dir_tmp)
```

Expand Down

0 comments on commit dd81914

Please sign in to comment.