Skip to content

Commit

Permalink
bug fix: Infer effect column
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Murphy committed Aug 1, 2024
1 parent 3ae9f02 commit 5422978
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: MungeSumstats
Type: Package
Title: Standardise summary statistics from GWAS
Version: 1.12.1
Version: 1.12.2
Authors@R:
c(person(given = "Alan",
family = "Murphy",
Expand Down
4 changes: 2 additions & 2 deletions R/get_genome_build.R
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ get_genome_build <- function(sumstats,
"ref_allele"="A2","alt_alleles"="A1"),
nomatch = FALSE
])
if(num_a2>=num_a1){
if(num_a1>=num_a2){
message("Effect/frq column(s) relate to A2 in the inputted sumstats")
#this is what MSS expects so no action required
switch_req <- FALSE
}else{#num_a2<num_a1
}else{#num_a1<num_a2
message("Effect/frq column(s) relate to A1 in the inputted sumstats")
switch_req <- TRUE
}
Expand Down

0 comments on commit 5422978

Please sign in to comment.