Reads imputed genotypes and SNP information from FImpute output, builds a SnpMatrix and a corresponding map, and returns an SNPDataLong object.

read.fimpute(file, method = c("R", "Rcpp"))

Arguments

file

Character. Path to the FImpute output directory (usually "output_fimpute").

method

Character. "R" (default) for vectorized R implementation, or "Rcpp" for compiled C++ implementation.

Value

An object of class SNPDataLong containing the imputed genotypes and SNP map.

Examples

if (FALSE) { # \dontrun{
snp_long <- read.fimpute("output_fimpute", method = "R")
} # }