block.map.matrix: Creates an indicator matrix for haplotype block boundaries, for
use in ld_lasso.
Description
Simple function that maps the block boundary vector to an indicator
matrix for use in the definition of constraint matrix. This matrix
ensures that only within block SNP pairs are considered.
Usage
block.map.matrix(block.cood)
Arguments
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 matrix of logical variables. If the (i,j) entry is TRUE than SNP i
and SNP j are in the same haplotype block.