Infer sprigs (very small clades) within a local phylogeny based on one-directional nearest neighbourhoods assigned to each haplotype.
Arguments
- x
list of integers where each entry is a nearest neighbourhood as returned by
CladeMat()- old.sprigs
If
TRUE, use an earlier (undocumented) version of maximal clique calling, defaults toFALSE.
Value
a list containing:
assignmentsa vector of integers such that
$assignments[i]gives the sprig to which haplotypeibelongs.NAif a haplotype was not assigned to a sprig.to.prunea vector of logicals,
$to.prune[i]==TRUEwhen haplotype i has been assigned to a sprignum.sprigstotal number of sprigs calls, equal to
max($assignements, rm.na = TRUE)
Details
Call maximal cliques within a directed graph where edges correspond to nearest neighbour relationships.
References
Christ, R.R., Wang, X., Aslett, L.J.M., Steinsaltz, D. and Hall, I. (2024) "Clade Distillation for Genome-wide Association Studies", bioRxiv 2024.09.30.615852. Available at: doi:10.1101/2024.09.30.615852 .