Skip to content

Fst implementation (and doc fixes) - #220

Merged
petrelharp merged 1 commit into
masterfrom
fst
Jun 12, 2019
Merged

petrelharp merged 1 commit into
masterfrom
fst

Conversation

@petrelharp

Copy link
Copy Markdown
Contributor

This is an implementation of Fst: the "1 - diversity/divergence" version. Since this is just using our diversity and divergence functions - it isn't a "general stat" itself, but a ratio of them - I have only tested one case (but one that people might care about - windows="sites").

This closes #199.

Also:
closes #214
closes #217

In the process I ran into a question: what if there are no sites, what should be returned with windows="sites"? Currently it returns something with one row, but it should probably have zero rows.

@codecov

codecov Bot commented Jun 11, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #220 into master will increase coverage by 0.01%.
The diff coverage is 95.45%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #220      +/-   ##
=========================================
+ Coverage   86.29%   86.3%   +0.01%     
=========================================
  Files          16      16              
  Lines        9020    9035      +15     
  Branches     1618    1621       +3     
=========================================
+ Hits         7784    7798      +14     
  Misses        735     735              
- Partials      501     502       +1
Flag Coverage Δ
#c_tests 86.3% <95.45%> (+0.01%) ⬆️
#python_tests 98.91% <95.45%> (-0.04%) ⬇️
Impacted Files Coverage Δ
python/tskit/trees.py 98.63% <95.45%> (-0.08%) ⬇️

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 5664a68...3d54501. Read the comment docs.

@jeromekelleher

Copy link
Copy Markdown
Member

Looks good, thanks @petrelharp. Will merge once CI passes (I rebased and removed a stray print).

@petrelharp

Copy link
Copy Markdown
Contributor Author

CI passed; merging. Thanks for cleaning up that print!

@petrelharp
petrelharp merged commit afa6e4c into master Jun 12, 2019
@jeromekelleher
jeromekelleher deleted the fst branch June 12, 2019 15:59
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.

Change indices to indexes in general stat docs Stats docs: correct sample_sets param docs Implement pairwise Fst

2 participants