Skip to content

Commit

Permalink
Merge pull request KrasnitzLab#568 from belleau/main
Browse files Browse the repository at this point in the history
Update
  • Loading branch information
adeschen authored Oct 22, 2024
2 parents 8f2ea94 + 87b9718 commit 9b64817
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/process1KG.R
Original file line number Diff line number Diff line change
Expand Up @@ -1165,8 +1165,8 @@ addBlockFromDetFile <- function(fileReferenceGDS, gdsRefAnnotFile, pathBlock,
tmp <- processBlockChr(fileReferenceGDS, file.path(pathBlock, listChrCur))
listBlock[[chr]] <- tmp$block.snp
if(chr > 1) {
vMax <- max(listBlock[[chr-1]])
vMin <- min(listBlock[[chr-1]])
vMax <- max(listBlock[[chr-1]], 0)
vMin <- min(listBlock[[chr-1]], 0)
listBlock[[chr]][listBlock[[chr]] > 0] <-
listBlock[[chr]][listBlock[[chr]] > 0] + vMax
if(vMin < 0) {
Expand Down

0 comments on commit 9b64817

Please sign in to comment.