Closed jeromekelleher closed 2 years ago
That makes sense to me.
OK, so simplest way to do that is to have two files haploid.py
and diploid.py
, each of which has those three functions.
Although, come to think of it, it could be annoying to have two different function with the same name.
What if we just had three functions and we determined the ploidy from the dimensions of the input haplotypes? That'd be nice.
I've added ls.y with wrappers to check and run relevant functions based on ploidy and have added tests.
It's not clear what the external API should be. Here's one option, we have a set of functions like
What do you think @astheeggeggs?