snpgdsOption: Option settings: chromosome coding, etc

Description Usage Arguments Author(s) Examples

View source: R/SNPRelate_Main.r

Description

Return an option list used by the SNPRelate package or a GDS file

Usage

1
snpgdsOption(gdsobj=NULL, autosome.start=1, autosome.end=22, ...)

Arguments

gdsobj

a GDS file object (gds.class)

autosome.start

the starting index of autosome

autosome.end

the ending index of autosome

...

optional arguments for new chromosome coding

Author(s)

Xiuwen Zheng

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# define the new chromosomes 'Z' and 'W'
snpgdsOption(Z=27, W=28)


# open an example dataset (HapMap)
genofile <- openfn.gds(snpgdsExampleFileName())

snpgdsOption(genofile)

# close the genotype file
closefn.gds(genofile)

SNPRelate documentation built on May 2, 2019, 4:56 p.m.