Skip to content

Commit

Permalink
add BP check
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Murphy committed Feb 21, 2023
1 parent ae51cae commit e47b9b2
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 18 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.7.18
Version: 1.7.19
Authors@R:
c(person(given = "Alan",
family = "Murphy",
Expand Down
5 changes: 3 additions & 2 deletions R/check_bp_range.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@
check_bp_range <- function(sumstats_dt, path, ref_genome,log_folder_ind,
imputation_ind,check_save_out, tabix_index, nThread,
log_files) {
chr_max<- CHR <- seqlengths <- .SD <- NULL
BP<- chr_max<- CHR <- seqlengths <- .SD <- NULL
col_headers <- names(sumstats_dt)
if ("BP" %in% col_headers) {
#need CHR to get chrom lengths
if ("BP" %in% col_headers && "CHR" %in% col_headers) {
message("Checking for incorrect base-pair positions")
#load chromosome lengths
if (toupper(ref_genome) == "GRCH37") {
Expand Down
1 change: 1 addition & 0 deletions R/read_vcf.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#' \item{c("<sample_id1>","<sample_id2>",...) : }{
#' Only user-selected samples will be used (case-insensitive).}
#' }
#' @param which Genomic ranges to be added if supplied. Default is NULL.
#' @param use_params
#' When \code{TRUE} (default), increases the speed of reading in the VCF by
#' omitting columns that are empty based on the head of the VCF (NAs only).
Expand Down
6 changes: 1 addition & 5 deletions man/read_vcf.Rd

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

6 changes: 1 addition & 5 deletions man/read_vcf_parallel.Rd

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

6 changes: 1 addition & 5 deletions man/select_vcf_fields.Rd

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

0 comments on commit e47b9b2

Please sign in to comment.