load_gds_as_genotype_data: Load GDS as Genotype Data

View source: R/geno_data_fetch.R

load_gds_as_genotype_dataR Documentation

Load GDS as Genotype Data

Description

Open a connection to a snpgds file (cf. SNPRelate package) as a Genotype Data object.

Usage

load_gds_as_genotype_data(
  gds_file,
  read_snp_annot = TRUE,
  read_scan_annot = TRUE
)

Arguments

gds_file

Path of snpgds file

read_snp_annot

Read the SNPs' annotations

read_scan_annot

Read the scans' annotations

Value

Genotype Data object

Examples

library(snplinkage)
gds_path <- save_hgdp_as_gds()
gdata <- load_gds_as_genotype_data(gds_path)


snplinkage documentation built on Sept. 11, 2024, 6:02 p.m.