CAST-genomics / haptools

Ancestry and haplotype aware simulation of genotypes and phenotypes for complex trait analysis
https://haptools.readthedocs.io
MIT License
18 stars 4 forks source link

feat: add a parameter for reordering genotype samples directly after reading them #228

Closed aryarm closed 9 months ago

aryarm commented 10 months ago

marking this as a draft PR because I still need to handle situations where there are duplicate samples or nonexistent samples passed via the samples parameter. We didn't have to worry about this before because cyvcf2 would handle it for us, but it's probably a good idea to think about now that we are actually treating the samples parameter as a list instead of a set

also I should disable the warning by passing reorder_samples=False in all of the places where it doesn't matter

aryarm commented 9 months ago

this PR was overriden by #230