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.

1 |

`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 matrix of logical variables. If the (i,j) entry is TRUE than SNP i and SNP j are in the same haplotype block.

Samuel G. Younkin

ld_lasso

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.