Skip to content

Commit

Permalink
update for 0 missing SNPs
Browse files Browse the repository at this point in the history
  • Loading branch information
matt committed Jan 24, 2024
1 parent 7bd4444 commit 33f58ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/proxy-search.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ proxy_search <- function(data_exposure, data_outcome, data_outcome_path, data_re

# exposure snps missing from outcome ====
snps_missing <- setdiff(unique(as.factor(data_exposure$SNP)), unique(as.factor(data_outcome$SNP)))
if (length(snps_missing) == 0) {
message("No missing SNPs. Returning the original dataframe.")
return(data_outcome)
}

# look-up missing SNPs in reference panel ====
message(paste0("# 1. looking up ", length(unique(as.factor(snps_missing))), " missing-SNP(s) in the reference panel"))
Expand Down

0 comments on commit 33f58ae

Please sign in to comment.