Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Jul 15, 2023
1 parent 6daff7d commit c773cbe
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 7 deletions.
4 changes: 3 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

## Bug fixes

- `create_fake_gwas_path`
* `create_fake_gwas_path`
- Don't remove "MAGMA_Files" from all parts of path.
* `magma_files_metadata`
- Update metadata.

# MAGMA.Celltyping 2.0.10

Expand Down
2 changes: 1 addition & 1 deletion R/calculate_conditional_celltype_enrichment_limma.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#'
#' #### MAGMA 2 #####
#' genesOut2 <- MAGMA.Celltyping::import_magma_files(
#' ids = c("ukb-b-6548"),
#' ids = c("ukb-a-333"),
#' file_types = ".genes.out",
#' return_dir = FALSE)
#' magma2 <- MAGMA.Celltyping::adjust_zstat_in_genesOut(
Expand Down
4 changes: 2 additions & 2 deletions R/import_magma_files_metadata.R
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import_magma_files_metadata <- function(file_types,
use_local = TRUE,
verbose = TRUE){
if(use_local){
if(isTRUE(use_local)){
magma_files_metadata <- MAGMA.Celltyping::magma_files_metadata
} else{
magma_files_metadata <- data.table::fread(
Expand All @@ -37,5 +37,5 @@ import_magma_files_metadata <- function(file_types,
# query = paste(file_types, collapse = "|"),
# return_download_api = TRUE,
# verbose = verbose
# )
# )
}
Binary file modified data/magma_files_metadata.rda
Binary file not shown.
2 changes: 1 addition & 1 deletion man/calculate_conditional_celltype_enrichment_limma.Rd

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

2 changes: 1 addition & 1 deletion man/magma_files_metadata.Rd

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

Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ test_that("calculate_conditional_celltype_enrichment_limma works", {

#### MAGMA 2 #####
genesOut2 <- MAGMA.Celltyping::import_magma_files(
ids = c("ukb-b-6548"),
ids = c("ukb-a-333"),
file_types = ".genes.out",
return_dir = FALSE)
magma2 <- MAGMA.Celltyping::adjust_zstat_in_genesOut(
Expand Down

0 comments on commit c773cbe

Please sign in to comment.