Description Usage Arguments Value Author(s) Examples
This function takes a map vector and a block coordinate vector and creates a vector of block boundary positions for use when plotting block boundaries, as in plot_ldlasso.
1 | block.bounds(map, block.cood)
|
map |
a vector of SNP map positions in basepairs (or kilo-basepairs) |
block.cood |
A vector of length p+1, where p is the number of SNPs. block.cood is an indicator vector that indicates block boundaries at all p+1 SNP bounded intervals. Use find.bounds to create this vector. |
A vector of block boundary positions in basepairs
Samuel G. Younkin
1 2 3 4 | data("ldlasso_example")
bpmap <- (block.obj@gtdata@map-block.obj@gtdata@map[1])/1e3
block.bounds.vec <- block.bounds( map = bpmap , block.cood = block.cood )
block.bounds.vec
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.