block.bounds: Creates a vector of haplotype block boundary basepair...

Description Usage Arguments Value Author(s) Examples

View source: R/block.bounds.R

Description

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.

Usage

1

Arguments

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.

Value

A vector of block boundary positions in basepairs

Author(s)

Samuel G. Younkin

Examples

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

ldlasso documentation built on May 30, 2017, 3:05 a.m.