Repository navigation
moved stats functions to stats.rst - #271
petrelharp wants to merge 2 commits into
Conversation
Codecov Report
@@ Coverage Diff @@
## master #271 +/- ##
======================================
Coverage 85.8% 85.8%
======================================
Files 19 19
Lines 14068 14068
Branches 2736 2736
======================================
Hits 12071 12071
Misses 1043 1043
Partials 954 954
Continue to review full report at Codecov.
|
|
Hm: we could actually implement |
|
I'm not sure I agree with completely removing the stats from the docs from the TreeSequence docs @petrelharp - they are still methods of the tree sequence, and people might expect to be able to search for them there. Have you seen my alternative proposal for reorganising the stats docs here in #254? This tries to categorise the stats and gives links back to the technical documentation. I think this is good because it gives a high-level overview of what's available, and how they relate to each other. |
I'm fine with deprecating or even removing |
Whoops; sorry - missed that. It'd be nice to organize the many TreeSequence methods according to type, but maybe that's something that can be done in a cheatsheet-type page. Ok, I like that better.
I think we should definately keep the functionality! Just make it a node stat and rename it. |
|
Ok, I'll move my changes over to #254 and open a new issue for |
|
Shall we close this PR then? |
Here's the sphinx magic to move that over. Other things that we could maybe do now:
pairwise_diversitybut should probably move that over tostats.rstalso?genealogical_nearest_neighborsandmean_descendantsover tostats.rst; perhaps in a separate section? There's definately overlap between the topics; maybe the page gets called something like "Statistics and other genealogical descriptors"?mean_descendantscould be easily implemented as a node statistic, and we'd have use for the corresponding site and branch statistic, also. Maybe the most natural is thatmode="site", windows="sites", polarised=Truegives the derived allele frequency at each site. Given this, maybe a better name isdescendant_frequencyor justfrequency?