Description Usage Arguments Details Value Author(s) See Also Examples
View source: R/make.binary.haplotypes.R
This function imports all haplotypes present in the 'haplotypes' directory, creating a single binary file for loading them all (as requested on subsequent functions).
1 |
chrs |
Numeric vector with chromosome ID(s). Default set to 1:22. |
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
|
R binary file named 'haps-sample.RData'.
CainĂ£ Max Couto-Silva
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.