| .fixBothStrand | R Documentation |
Internal helper that scans a haplotype/strand matrix in *pairs of rows* (two rows per individual/segment) and detects loci where **both rows in a pair are non-zero**. Such positions are treated as conflicting assignments and are replaced with the sentinel value '100' on *both* rows of the pair.
.fixBothStrand(groups)
groups |
A numeric matrix with an **even number of rows**. Rows are
interpreted in pairs: rows |
This function is a thin R wrapper around the native routine
fixBothStrand implemented in C++ and called via .Call().
The sentinel value '100' is used downstream as an indicator of an unresolvable conflict between the two strands at that position.
A numeric matrix with the same dimensions as groups. For each
row-pair and column:
if both entries are non-zero, both are set to '100';
otherwise, the original values are preserved.
aio, ssp, bmh for the main
hsphase workflow where strand/haplotype matrices are produced and refined.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.