Skip to content

High-level doc structure for available stats. - #254

Merged
jeromekelleher merged 1 commit into
tskit-dev:masterfrom
jeromekelleher:docs-stats
Jul 31, 2019
Merged

jeromekelleher merged 1 commit into
tskit-dev:masterfrom
jeromekelleher:docs-stats

Conversation

@jeromekelleher

Copy link
Copy Markdown
Member

Adds a structured index of stats that we have implemented to the stats docs page. The structure is tentative - I think you're in a much better position to put some sensible structure and describe the high-level properties of the stats @petrelharp.

Also, I didn't address this point:

Also distinguish those statistics for which E[site] = branch, from the 'derived' ones (currently just Fst and Tajima's D).

What do you think @petrelharp? If you want to update this before merging, you should be able to push commits to this branch. Otherwise, we can merge and create some issues to track the changes that need to be made.

@codecov

codecov Bot commented Jul 3, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #254 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@          Coverage Diff           @@
##           master    #254   +/-   ##
======================================
  Coverage    85.8%   85.8%           
======================================
  Files          19      19           
  Lines       14071   14071           
  Branches     2736    2736           
======================================
  Hits        12074   12074           
  Misses       1043    1043           
  Partials      954     954
Flag Coverage Δ
#c_tests 86.73% <ø> (ø) ⬆️
#python_c_tests 89.94% <ø> (ø) ⬆️
#python_tests 99.17% <ø> (ø) ⬆️
Impacted Files Coverage Δ
python/tskit/trees.py 98.58% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 65a1122...8901cbb. Read the comment docs.

@petrelharp

petrelharp commented Jul 30, 2019 •

Copy link
Copy Markdown
Contributor

I am not sure about pushing directly to this branch; but I've pulled, amended, and pushed a new branch to this repo with this same name. I can't edit this PR to point to that branch, though.

@jeromekelleher

Copy link
Copy Markdown
Member Author

I am not sure about pushing directly to this branch; but I've pulled, amended, and pushed a new branch to this repo with this same name. I can't edit this PR to point to that branch, though.

You should be able to as you're an admin. Did you try git push doc-stats jeromekelleher:doc-stats? What error are you getting?

@petrelharp

Copy link
Copy Markdown
Contributor

Oh, I see. I was getting a non-fast-foward error, which is because I'd rebased to master. I've force-pushed; how's that?

@jeromekelleher

Copy link
Copy Markdown
Member Author

Looks great to me, thanks @petrelharp. The travis error is unrelated, I'll open an issue to track fixing that. I'll merge one the rest of the CI has gone through.

@petrelharp

Copy link
Copy Markdown
Contributor

Ah, hold on I want to add one thing - documentation of the general stat interface.

@jeromekelleher

Copy link
Copy Markdown
Member Author

The travis issues should be sorted out after a rebase @petrelharp (FYI for when you update this).

Closes tskit-dev#213

doc additions and afs tutorial tweak

documented general method
@petrelharp

Copy link
Copy Markdown
Contributor

Ok, should be good to go (for this iteration anyhow :).

Comment thread python/tskit/trees.py
@@ -3254,6 +3256,47 @@ def draw_text(self, **kwargs):

def general_stat(self, W, f, windows=None, polarised=False, mode=None,
span_normalise=True):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Related to this: it may be nice to show the Python implementation of Tajima's D in the docs. I think concrete examples are really helpful in making the generalities of the docstring less opaque.

@petrelharp

Copy link
Copy Markdown
Contributor

Checks are passing; I'm going to merge this and we can continue improving the docs in another PR.

@jeromekelleher

Copy link
Copy Markdown
Member Author

Merging - thanks for the updates @petrelharp.

@jeromekelleher
jeromekelleher merged commit a69a4a6 into tskit-dev:master Jul 31, 2019
@jeromekelleher
jeromekelleher deleted the docs-stats branch July 31, 2019 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants