Skip to content

Commit

Permalink
Update Format_data.R
Browse files Browse the repository at this point in the history
  • Loading branch information
YangLabHKUST authored Aug 8, 2022
1 parent bd0dd1d commit 51cde60
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/Format_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ format_data <- function(dat,
# remove SNP with allele freqcy less than min_freq
dat[is.na(dat$freq),"freq"] = 0.5
dat = dat[dat$freq > min_freq & dat$freq < (1-min_freq), ]
message("Remove SNPs with MAF less than", min_freq, ", remaining ", nrow(dat), " SNPs.")
}


Expand Down

0 comments on commit 51cde60

Please sign in to comment.