Skip to content

IBD docs update - #1902

Merged
mergify[bot] merged 2 commits into
tskit-dev:mainfrom
jeromekelleher:ibd-docs-update
Dec 10, 2021
Merged

mergify[bot] merged 2 commits into
tskit-dev:mainfrom
jeromekelleher:ibd-docs-update

Conversation

@jeromekelleher

@jeromekelleher jeromekelleher commented Nov 10, 2021 •

Copy link
Copy Markdown
Member

Finalise IBD documentation

@codecov

codecov Bot commented Dec 2, 2021 •

Copy link
Copy Markdown

Codecov Report

Merging #1902 (609a686) into main (dd413af) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main    #1902   +/-   ##
=======================================
  Coverage   93.36%   93.36%           
=======================================
  Files          27       27           
  Lines       25557    25557           
  Branches     1114     1114           
=======================================
  Hits        23861    23861           
  Misses       1660     1660           
  Partials       36       36           
Flag Coverage Δ
c-tests 92.38% <100.00%> (ø)
lwt-tests 89.05% <ø> (ø)
python-c-tests 72.12% <35.71%> (ø)
python-tests 98.78% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
python/tskit/trees.py 97.81% <ø> (ø)
c/tskit/tables.c 90.27% <100.00%> (ø)
python/_tskitmodule.c 90.96% <100.00%> (ø)
python/tskit/tables.py 98.77% <100.00%> (ø)

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 dd413af...609a686. Read the comment docs.

@jeromekelleher
jeromekelleher force-pushed the ibd-docs-update branch 2 times, most recently from 72bc913 to c76843c Compare December 8, 2021 15:55
@jeromekelleher
jeromekelleher marked this pull request as ready for review December 8, 2021 15:55
@jeromekelleher

Copy link
Copy Markdown
Member Author

This is ready for review now. It's not as polished as I would like, but I've run out of time unfortunately so this will have to do for now 😞

Hopefully we can polish up the examples as we go and the TODOs make it clear where stuff is unfinished.

@benjeffery benjeffery left a comment

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.

Great, just one sentence that didn't parse.

Comment thread docs/ibd.md Resolved
@jeromekelleher

Copy link
Copy Markdown
Member Author

@hyanwong can you have a look through this please? I don't think @gtsambos is in a position to do much reviewing at the moment, so we'll just have to go ahead without her if we want to get 0.4.0 out the door.

@hyanwong

hyanwong commented Dec 9, 2021

Copy link
Copy Markdown
Member

I'm looking through this now. One naming question, though, before we actually release this. Should "min_length" be changed to "min_span"? I know we had problems with the length/span distinction before, and it would be nice to keep consistency here.

@jeromekelleher

Copy link
Copy Markdown
Member Author

Should "min_length" be changed to "min_span"?

Ugh, yes, you're probably right... Reverting to draft...

@jeromekelleher
jeromekelleher marked this pull request as draft December 9, 2021 14:50

@hyanwong hyanwong left a comment

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.

A few trivial nitpicks. Otherwise LGTM, although it would be nice to flesh the docs out later.

Comment thread docs/ibd.md Resolved
Comment thread docs/ibd.md Resolved
Comment thread docs/ibd.md Resolved
Comment thread docs/ibd.md Resolved
@hyanwong

hyanwong commented Dec 9, 2021

Copy link
Copy Markdown
Member

Also (not part of this PR), I find the table below a bit confusing at first:

╔════════════════════╗
║IdentitySegments    ║
╠══════════════╤═════╣
║max_time      │  inf║
║min_length    │    0║
║store_pairs   │False║
║store_segments│False║
║num_segments  │    6║
║total_span    │ 30.0║
╚══════════════╧═════╝

Because I originally assumed max_time and min_length were reporting on features of the returned segments, not the constraint parameters passed to the method. Can we display something like:

╔════════════════════╗
║IdentitySegments    ║
╠══ Parameters ╤═════╣
║max_time      │  inf║
║min_length    │    0║
║store_pairs   │False║
║store_segments│False║
║              │     ║
╠═══ Results ══╤═════╣
║num_segments  │    6║
║total_span    │ 30.0║
╚══════════════╧═════╝

@jeromekelleher

Copy link
Copy Markdown
Member Author

Good idea @hyanwong, I like it.

@hyanwong

hyanwong commented Dec 9, 2021

Copy link
Copy Markdown
Member

Good idea @hyanwong, I like it.

No need to incorporate it into this PR, though, unless it's easy to do.

Some minor doc updates also.
@jeromekelleher
jeromekelleher marked this pull request as ready for review December 10, 2021 10:58
@jeromekelleher

Copy link
Copy Markdown
Member Author

Updated @hyanwong. I wasn't able to quickly do your nice table sep thing, but put in some extra rows which will hopefully help.

I think this is ready to merge then?

@hyanwong

Copy link
Copy Markdown
Member

Yes, LGTM!

@mergify
mergify Bot merged commit 0101ab7 into tskit-dev:main Dec 10, 2021
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