Open alimanfoo opened 2 weeks ago
how would you like to approach this?
Its a bit tricky because the het_bar function needs the dendrogram sample order, so we cant run this function before the dendrogram, but also, we don't want to run it twice.
Hm, I forgot about the dendrogram. Maybe this is a bit harder than I imagined. Definitely would be better to avoid running anything twice if possible. Will have a think...
When doing diplotype clustering we often are only interested in clusters with low heterzygosity because these are representative of swept haplotypes. So it might be useful to have a parameter in the advanced diplotype clustering function to remove samples above a certain threshold of heterozygosity.