Learn R Programming

ldlasso (version 3.2)

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

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

block.bounds(map, block.cood)

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

Examples

Run this code
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


Run the code above in your browser using DataLab