Description Usage Arguments Details Value Note Examples
Given a set of SNP identifiers, use LD to expand the set to include linked loci
1 2 3 | expandSnpSet(rsl, lb = 0.8, ldstruct, chrn = "chr17", popn = "CEU",
txtgzfn = dir(system.file("hapmap", package = "ldblock"), full.names =
TRUE))
|
rsl |
input list – SNPs not found in the LD structure are simply returned along with those found, and the expansion list, all combined in a vector |
lb |
lower bound on statistic used to retrieve loci in LD |
ldstruct |
instance of |
chrn |
chromosome identifier |
popn |
population identifier (one of 'CEU', 'MEX', ...) |
txtgzfn |
path to gzipped hapmap file with LD information |
direct use of elementwise arithmetic comparison
character vector
As of 2015, it appears that locus names are more informative than addresses for determining SNP identity across resources.
1 2 3 4 5 | og = Sys.getenv("LDBLOCK_TXTGZ_DIR")
on.exit( Sys.setenv("LDBLOCK_TXTGZ_DIR" = og ) )
Sys.setenv("LDBLOCK_TXTGZ_DIR"=system.file("hapmap", package="ldblock"))
ld17 = hmld(chr="chr17", pop="CEU")
ee = expandSnpSet( ld17@allrs[1:10], ldstruct = ld17 )
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.