Skip to content

Commit

Permalink
replace refDosage() by imputedDosage() to read DS from format
Browse files Browse the repository at this point in the history
  • Loading branch information
Qiong Yang committed Nov 24, 2024
1 parent dd2a91b commit 12492df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^renv$
^renv\.lock$
^\.github$
^.*\.Rproj$
^\.Rproj\.user$
4 changes: 3 additions & 1 deletion R/admixMap.R
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ admixMap <- function(admixDataList,
if (is(admixDataList[[1]], "GenotypeIterator")) {
local[,,i] <- getGenotypeSelection(admixDataList[[i]], scan=sample.index, order="selection", transpose=TRUE, use.names=FALSE, drop=FALSE)
} else {
local[,,i] <- refDosage(admixDataList[[i]], use.names=FALSE)[sample.index,,drop=FALSE]
# local[,,i] <- refDosage(admixDataList[[i]], use.names=FALSE)[sample.index,,drop=FALSE]
local[,,i] <- imputedDosage(admixDataList[[i]], use.names=FALSE)[sample.index,,drop=FALSE]

}
}
if (any(is.na(local))) warning("missing values in local ancestry will produce NA output for this block")
Expand Down

0 comments on commit 12492df

Please sign in to comment.