Skip to content

Commit

Permalink
Fix map_snps_to_genes unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
bschilder committed Mar 2, 2023
1 parent 1c8c2fd commit e19acf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 100 deletions.
94 changes: 0 additions & 94 deletions educational_attainment.tsv

This file was deleted.

10 changes: 4 additions & 6 deletions tests/testthat/test-map_snps_to_genes.r
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,14 @@ test_that("map_snps_to_genes works", {
#### Gather data ####
ctd <- ewceData::ctd()
#### Run SNP-to-gene mapping ####
## Use a very small example GWAS file
wd <- getwd()
## Use a very small example GWAS file
path_formatted <- MAGMA.Celltyping::get_example_gwas(
trait = "educational_attainment",
storage_dir = wd)
trait = "educational_attainment")
## Map
genesOutPath <- MAGMA.Celltyping::map_snps_to_genes(
genesOutPath <- MAGMA.Celltyping:: map_snps_to_genes(
path_formatted = path_formatted,
genome_build = "hg19",
N = NULL)
N = 5000)
## Test
genesOut_cols <- c("GENE","CHR","START","STOP","NSNPS",
"NPARAM","N","ZSTAT","P")
Expand Down

0 comments on commit e19acf1

Please sign in to comment.