You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fst gives a NoneType error when no indices are given (the default) #250
I was looking into this @petrelharp, and it seems we don't have a lot of test coverage on Fst right now --- we're only testing the "site" version, essentially. Since this is a derived statistic it seems overboard to implement the full thing from scratch like the other stats, but we do need to get some sort of coverage here on "branch" and "node". Have you any suggestions for this?
Currently our default for indexes=None is indexes=[(0, 1)] for pairwise stats. We can't do this here because users might think that the single Fst value returned is the between-all-pops Fst value. I also don't want to just return the full matrix by default because it's not clear what order it should be in. So, I'm making the user specify.
Currently our default for indexes=None is indexes=[(0, 1)] for pairwise stats. We can't do this here because users might think that the single Fst value returned is the between-all-pops Fst value. I also don't want to just return the full matrix by default because it's not clear what order it should be in. So, I'm making the user specify.
I see. What if [(0, 1)] was the default when we have two sample sets, but we raise a ValueError if there's more than 2 sample sets and indexes is None? We want to make the common case easy and simple.
Activity
jeromekelleher commentedon Jul 3, 2019
See also #199 (comment)
jeromekelleher commentedon Aug 19, 2019
I was looking into this @petrelharp, and it seems we don't have a lot of test coverage on Fst right now --- we're only testing the "site" version, essentially. Since this is a derived statistic it seems overboard to implement the full thing from scratch like the other stats, but we do need to get some sort of coverage here on "branch" and "node". Have you any suggestions for this?
petrelharp commentedon Aug 19, 2019
I guess we just need to do some "does this run" sort of checks. I'll have a look.
parse indexes for Fst and more tests (closes #250)
petrelharp commentedon Aug 19, 2019
Currently our default for
indexes=Noneisindexes=[(0, 1)]for pairwise stats. We can't do this here because users might think that the single Fst value returned is the between-all-pops Fst value. I also don't want to just return the full matrix by default because it's not clear what order it should be in. So, I'm making the user specify.jeromekelleher commentedon Aug 20, 2019
I see. What if
[(0, 1)]was the default when we have two sample sets, but we raise a ValueError if there's more than 2 sample sets and indexes is None? We want to make the common case easy and simple.parse indexes for Fst (closes #250)
petrelharp commentedon Aug 20, 2019
Oh, that's a good idea.
petrelharp commentedon Aug 20, 2019
I've done this, although similar defaults could be set for many other statistics, which we should probably do at some point...
parse indexes for Fst (closes #250)
jeromekelleher commentedon Aug 20, 2019
I've had a change of heart here, and think maybe we should hold off on specifying a default for this---see the comment in #313
petrelharp commentedon Aug 20, 2019
Whoops; missed this. Let's discuss at #315 .