make.binary.haplotypes: Make binary file with haplotypes

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/make.binary.haplotypes.R

Description

This function imports all haplotypes present in the 'haplotypes' directory, creating a single binary file for loading them all (as requested on subsequent functions).

Usage

1

Arguments

chrs

Numeric vector with chromosome ID(s). Default set to 1:22.

Details

Haplotype file names must start with "chr", followed by the chromosome ID (represented as Arabic numerals), then ending with either ".haps" or ".sample" extensions. Anything between the "chr[digit]" and the file extension can be written for population identification.

1
2
3
4
5
Examples: chr1<ANYTHING>.haps and chr1<ANYTHING>.sample
          chr2.foo-bar.haps and chr2.foo-bar.sample
          chr3_foobar.haps and chr3_foobar.sample
          chr4.haps and chr4.sample
          etc

Value

R binary file named 'haps-sample.RData'.

Author(s)

CainĂ£ Max Couto-Silva

See Also

ldstart

Examples

1
2
3
4
5
6
## Not run: 
make.binary.haplotypes() # analyzing all chromosomes (default = 1:22)
make.binary.haplotypes(chrs = 1:10) # analyzing chromosomes from 1 to 10
make.binary.haplotypes(chrs = c(2,9,10,15,21)) # analyzing specific chromosomes

## End(Not run)

cmcouto-silva/LD documentation built on Sept. 20, 2020, 2:46 p.m.