Skip to content

Support retain as well as remember - #125

Merged
petrelharp merged 4 commits into
tskit-dev:mainfrom
hyanwong:support-retain
Feb 20, 2021
Merged

petrelharp merged 4 commits into
tskit-dev:mainfrom
hyanwong:support-retain

Conversation

@hyanwong

@hyanwong hyanwong commented Jan 17, 2021 •

Copy link
Copy Markdown
Member

Hi @petrelharp - here's the basic PR for dealing with Retaining in pyslim but I haven't added any more tests. I guess we should add a slim recipe in where e.g. we Retain (rather than remember) everyone, and maybe a recipe where we Retain some and Remember others? I guess we want a round trip of some sort - does this exist already?

Also, we are still testing the (deprecated) function first_generation_individuals(), but that function relies on the INDIVIDUAL_FIRST_GEN constant that no longer exists. What should we do this this: simply turn the warning into an error? It's causing tests/test_tree_sequence.py::TestDeprecations::test_first_gen to fail.

Comment thread docs/_static/Makefile Resolved
Comment thread docs/introduction.rst Outdated
*************************************

OK, who and what exactly *is* left in the tree sequence?
OK, who and what exactly *is* left in the tree sequence after simplification?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It migth be confusing to say "after simplification" here: the reader might not know that "simplification" refers to a specific process (the previous paragraph is understandable without thinking of it as a technical term).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Maybe "who and what exactly is left in the tree sequence after the unnecessary information has been removed?" (or, "has been simplified away"?)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point. On that note, when you mention simplification later on, in tutorial.rst, it's as if you have never mentioned it before. I wonder if, in the tutorial, you should say something like "explicit simplification, in a similar way that the tree sequence is simplified on output, as described in the intro"?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Good idea, this should be clarified. In the tutorial I'm talking about running-simplify-in-python, not the simplification that happens in SLiM as it goes along. The reason it's like this is because simplification-by-SLiM is something that I think people can safely ignore: it's how things work under the hood, but I find that if we start talking about simplification a lot then people think they have to do it, but things are less error-prone if they don't do it. But clarification would be good.

Comment thread docs/introduction.rst Resolved
@petrelharp

Copy link
Copy Markdown
Contributor

Also, we are still testing the (deprecated) function first_generation_individuals(), but that function relies on the INDIVIDUAL_FIRST_GEN constant that no longer exists. What should we do this this: simply turn the warning into an error? It's causing tests/test_tree_sequence.py::TestDeprecations::test_first_gen to fail.

I'd say we should keep INDIVIDUAL_FIRST_GEN but set it equal to INDIVIDUAL_RETAINED, with a comment that it's deprecated, but kept for backwards compatibility?

Comment thread docs/introduction.rst Outdated
kept in the tree sequence after simplification. In contrast, individuals that are
merely marked for retention can lose their nodes (as has happened to one of the nodes in
this case). Furthermore, once all an individuals's nodes are lost, simplification
removes the individual too, for efficiency reasons.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested edit:
"
In the picture above there are two additional individuals pictured in the
tree sequence that were not alive at the end of the simulation. These are still present because they
were remembered, using the treeSeqRememberIndividuals() method. The lower
one (still containing 2 nodes or chromosome) was permanently remembered, which is the
default behaviour. The upper one (with only one node left) was only "retained",
by passing permanent=F when calling treeSeqRememberIndividuals().
As you might expect, permanently remembered individuals and the entire genealogical history of both their nodes are always
kept in the tree sequence, while individuals that are
merely retained will only be present in the tree sequence as long as at least one of their nodes
has not been removed by simplification.
"

Hm. I'm kinda feeling like this is the wrong place for a technical discussion, being the introduction, and maybe "retaining" is a more advanced topic to be explained elsewhere. What do you think? The problem is that the above paragraph still isn't quite there, because the fundamental difference between permanent/not is that

  • a permanently remembered individual is guaranteed to always have the entire history of both their chromosomes in the tree sequence
  • whereas a retained individual only acts as some extra annotation for its nodes: the only parts of its genomes that are actually recorded in the tree sequence are those on which it's the MRCA of two samples, unless keep_unary is on.

How about we remove mention of "retaining" from the Introduction, and make a new section in the Tutorial about it?

@hyanwong hyanwong Jan 18, 2021 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think it's useful to have it for the picture (because we need a picture for showing the difference between retained and remembered).

Also, if we are removing mention of retaining, should we not also remove a mention of Remembering entirely from the intro, as many people will use pyslim without either Remembering or Retaining?

I wonder if we should make Remembering (+ retaining) a separate section on their own, perhaps in the intro?

Comment thread docs/tutorial.rst Outdated
``tskit`` "nodes" correspond to SLiM "genomes".
Individuals in SLiM are diploid, so each has two nodes.
Individuals in SLiM are diploid, so normally, each has two nodes (but see below for
retained individuals, which can lose one of the nodes during simplification).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

how about

   Individuals in SLiM are diploid, so each has two nodes (but retained individual may have
   some removed by simplification: see below).

Comment thread pyslim/slim_tree_sequence.py Outdated
about (either "early" or "late"; defaults to "late").
:param str remembered_stage: The stage in the SLiM life cycle
that individuals were Remembered during (defaults to the stage the
that individuals were Remembered or Retained (defaults to the stage the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe omit "or Retained" here? Since one retains by calling treeSeqRemember, it seems sufficient; and otherwise it suggests there is a treeSeqRetain method?

Comment thread pyslim/slim_tree_sequence.py Outdated
:param str remembered_stage: The stage in the SLiM life cycle that
individuals were Remembered during.
:param str remembered_stage: The stage in the SLiM life cycle during which
individuals were Remembered or Retained.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ditto

@petrelharp

Copy link
Copy Markdown
Contributor

I guess we should add a slim recipe in where e.g. we Retain (rather than remember) everyone, and maybe a recipe where we Retain some and Remember others?

Yep - just adding the recipe, and then adding it to example_files should do it.

@petrelharp

Copy link
Copy Markdown
Contributor

Want me to have a go at the tests here, while you finish editing the docs?

@hyanwong

Copy link
Copy Markdown
Member Author

Want me to have a go at the tests here, while you finish editing the docs?

If that's easy, yes please!

If we are adding KEEP_UNARY_IN_INDIVIDUALS too, then you might want to bear that in mind when writing the tests, to make it easier to add tests for that too?

@hyanwong

hyanwong commented Jan 23, 2021 •

Copy link
Copy Markdown
Member Author

@petrelharp - in 0264a77 I've had a go at rewording introduction.rst as we discussed, although I haven't yet changed the diagrams to match: I hope you can imagine what they might look like.

The section "What if I'm interested in historical individuals too?" is in the intro, but could, if you prefer, be moved to the tutorial. I'll wait until I've got the go ahead from you before making any more changes or fiddling with the plots, if that's OK?

Comment thread docs/introduction.rst Resolved
Comment thread docs/introduction.rst Resolved
Comment thread docs/introduction.rst Outdated
that for simplicity, in this model the individuals that are currently alive are
all in the final generation, but more generally, individuals alive at a particular time
should be identified via the :meth:`.SlimTreeSequence.individuals_alive_at()` method (see
:ref:`sec_extracting_individuals`).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

this note is getting in to the weeds a bit much - in the diagram it isn't exactly clear who's alive when, or if this is something with overlapping generations or not

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

OK. It was in the previous write-up, but I wasn't quite sure where to slide it in. Note that the diagram isn't right yet - I haven't changed anything there.

Comment thread docs/introduction.rst Outdated
they were in (see :ref:`sec_retaining_individuals` if you need to retain this information).

As well as the actual individuals, many historical *nodes* have been removed too,
along with the lines linking them to the rest of the genealogy (in tree-sequence-speak the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe "along with their genealogical relationships"

Comment thread docs/introduction.rst Outdated
lines are known as "edges"). The deleted nodes are simply those that are not needed to
reconstruct the relationships between the sample nodes. For example we remove nodes
leading to a dead end (e.g. in individuals who had no offspring). Similarly, as time goes
on, successive recombination events can gradually reduce the genetic contribution of

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

it's genetic drift rather than recombination events that does this, strictly speaking

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ISWYM, but here I think it's a combination of both. What I'm trying to convey is that even if there are lines of ancestry in the diagram that go through a (coalescent) node, that node may be deleted because the line essentially "belongs to another tree". I'l try to rephrase.

Comment thread docs/introduction.rst Outdated
As we've seen, the tree sequence retains enough of the nodes (genomes) in the past to
reconstruct the genetic ancestry of the currently alive individuals. But you might want
more than that. For example, there may be individuals who are not alive any more, but
whose complete ancestry you would like to know. Or it may be that you want to access the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

", or you'd like to know how the final generation relates to the individuals alive at some previous time."

Comment thread docs/introduction.rst Outdated

.. _sec_remembering_individuals:

By default, individuals are *permanently* remembered, by marking their nodes as actual

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

should be "individuals included in the tree sequence by a call to treeSeqRememberIndividuals( )"

Comment thread docs/introduction.rst Resolved
@petrelharp

Copy link
Copy Markdown
Contributor

I've made some minor comments on the docs - they look good, generally. I'd still vote to move the "historical individuals" bit to a new section in the Tutorial, maybe before "Extracting particular individuals". What do you think? I'll have another good read through after the figures are in and it compiles.

@petrelharp

Copy link
Copy Markdown
Contributor

Ok, I've added some tests, and fixed up the testing of individual_parents (a bit tricky, logicking through when exactly we should know about someone's parents or not).

And, this has turned up - I think - a bug in the SLiM implementation: the test recipe where I alternate retaining and remembering, tests/examples/recipe_remember_and_retain.slim produces a tree sequence in which (at least) one individual, individual 21 in the tree sequence, with SLiM ID 28, is Remembered, but has only one node, which AFAICT, should not happen, since Remembered individuals should always have both nodes. This individual was both Remembered and Retained, so I'm wondering if perhaps we've forgotten to re-mark individuals as samples appropriately when they are Retained after Remembering? Any chance you could see what's going on here, @hyanwong?

@hyanwong

Copy link
Copy Markdown
Member Author

And, this has turned up - I think - a bug in the SLiM implementation: the test recipe where I alternate retaining and remembering, tests/examples/recipe_remember_and_retain.slim produces a tree sequence in which (at least) one individual, individual 21 in the tree sequence, with SLiM ID 28, is Remembered, but has only one node, which AFAICT, should not happen, since Remembered individuals should always have both nodes.

Yes, I agree.

This individual was both Remembered and Retained, so I'm wondering if perhaps we've forgotten to re-mark individuals as samples appropriately when they are Retained after Remembering? Any chance you could see what's going on here, @hyanwong?

Yes, I'll check this out.

@hyanwong

Copy link
Copy Markdown
Member Author

This individual was both Remembered and Retained, so I'm wondering if perhaps we've forgotten to re-mark individuals as samples appropriately when they are Retained after Remembering? Any chance you could see what's going on here, @hyanwong?

Yes, I'll check this out.

I've just rebased on the new test framework, and the tests are all passing, so I can't find the problem you say, @petrelharp. Could you check if I'm missing something? It should be easier to try out a failing test & recipe now, so hopefully easier to report?

@petrelharp

Copy link
Copy Markdown
Contributor

You've forgotten to include the new tests I wrote (maybe just adding the recipe to recipe_specs.py? looking into it...)

@petrelharp

Copy link
Copy Markdown
Contributor

Uh-oh, I'm afraid something's gone wrong with your rebase? For some reason this is showing a bunch of fixture-related changes in the diff. And (maybe this was an error that happened in that PR that we missed) there's a bunch of tests in TestIndividualAges that are duplicated, from test_population on down.

@petrelharp

Copy link
Copy Markdown
Contributor

The fixture commits showing up here is I think because you rebased to your local feature branch instead of rebaseing to origin/main, which has a merge commit: 4fa846b (for some reason).

@petrelharp

Copy link
Copy Markdown
Contributor

But it looks like the merging/rebasing might need to be a bit more manual. I've got the previous state of this branch in my git repo if you want me to force-push it back to how it was before the rebase.

@hyanwong

Copy link
Copy Markdown
Member Author

Done: should work now. Sorry about that.

@petrelharp

Copy link
Copy Markdown
Contributor

Maybe we should mark those particular .trees files to not be ignored in the gitignore...

@petrelharp

Copy link
Copy Markdown
Contributor

Ok, so I get the same error. (tldr; we should delete this part of the test)

Adding some prints and running the SLiM script and looking at the pedigree file, I see that this individual's ID is 77, and has two SLiM parents, 52 and 64.

generation      stage   individual      age     parent1 parent2
...
8       early   77      0       64      52

But for some reason 64 isn't in slim_p. With some more prints, it turns out that 77 happened to inherit all of both its genomes from 52, and none from 64. Huh, that shouldn't happen, under diploidy??

individual: {'id': 0, 'flags': 458752, 'location': array([0.22473303, 0.98065234, 0.        ]), 'nodes': array([70, 71], dtype=int32), 'population': 1, 'time': 2.0, 'metadata': {'pedigree_id': 77, 'age': 2, 'subpopulation': 1, 'sex': -1, 'flags': 0}}
parent: {'id': 36, 'flags': 393216, 'location': array([0., 0., 0.]), 'nodes': array([50, 51], dtype=int32), 'population': 1, 'time': 5.0, 'metadata': {'pedigree_id': 52, 'age': 2, 'subpopulation': 1, 'sex': -1, 'flags': 0}}

{left=0.000, right=10.000, parent=50, child=70, id=69, metadata=b''}
{left=32.000, right=55.000, parent=50, child=70, id=70, metadata=b''}
{left=70.000, right=100.000, parent=50, child=70, id=71, metadata=b''}
{left=10.000, right=32.000, parent=51, child=70, id=75, metadata=b''}
{left=55.000, right=70.000, parent=51, child=70, id=76, metadata=b''}
{left=0.000, right=53.000, parent=50, child=71, id=72, metadata=b''}
{left=53.000, right=100.000, parent=51, child=71, id=77, metadata=b''}

Ah-ha. but that other parent, with SLiM ID 64, is itself produced by 77's other parent, 52, by selfing:

generation      stage   individual      age     parent1 parent2
7       early   64      0       52      52

and I guess that 64 was just retained, not remembered, and so isn't in the tree sequence any more. The result is indistinguishable from 77 having been produced by 52 by selfing.

Ok: my proposed fix is to just delete the lines

            if len(slim_p) != 2:
                # if we don't have two slim parents, then we sure shouldn't
                # have any pyslim parents
                assert ts_p == []

since they're trying to test something we can't really test.

@hyanwong

Copy link
Copy Markdown
Member Author

Maybe we should mark those particular .trees files to not be ignored in the gitignore...

Nah, it's OK. Once they are in the git store, it doesn't ignore them - if they change it will now be noticed. They only vanished because I changed the name of the directory they were in, so git forgot they were actually part of the repo.

@hyanwong

Copy link
Copy Markdown
Member Author

my proposed fix is to just delete the lines ... since they're trying to test something we can't really test.

Great sleuthing. Thanks @petrelharp. Happy with that solution. I'll do it now.

@hyanwong

hyanwong commented Feb 4, 2021

Copy link
Copy Markdown
Member Author

Interesting that this is now failing on

python -m pytest tests/test_tree_sequence.py::TestHasIndividualParents -k recipe_remember_and_retain.slim

This is even with the updated SLiM version (and we aren't doing keep_unary in the tests anyway). Any idea what's going on @petrelharp ? I'm just working on the Inkscape pictures for the new docs now.

@hyanwong

hyanwong commented Feb 4, 2021 •

Copy link
Copy Markdown
Member Author

I have now changed the docs so that "remembering and retaining" has its own section. That's meant a fair change in the diagrams, and a bit in the structure (e.g. I now have put "recapitation, simplification, mutation" in a higher-level section about combining forwards & backwards sims.

I rather hacked the diagrams so haven't properly changed the master Inkscape file or the makefile that creates them. I'll do that once you look at the pictures, @petrelharp, and approve the general approach. I hope it makes the introduction a bit simpler (I wasn't sure which style out of pedigree2.png or pedigree3.png to retain, though: solid circles with coloured labels, or labels with arrows. It did seem like having 2 essentially identical diagrams wasn't needed any more, though)

Edit - one other thing I notice is that although it's on the "tutorial" page, the "remembering and retaining" section doesn't actually have any code to follow. Which seems a bit odd.

@petrelharp

petrelharp commented Feb 5, 2021 •

Copy link
Copy Markdown
Contributor

Well, the failing test is the same problem as above: individual 78 has parents 62 and 65, but only 62 is retained, and so we mistake 65's parent, 52, for 78's parent, because apparently 52 is still alive when 78 is born, and 78 inherited the entire chromosome from 52. So, overly strict tests again, I guess - I only really designed these individual_parents( ) methods for when everyone is remembered.

Here's a fix:

diff --git a/tests/test_tree_sequence.py b/tests/test_tree_sequence.py
index af41e07..c81e8e0 100644
--- a/tests/test_tree_sequence.py
+++ b/tests/test_tree_sequence.py
@@ -576,9 +576,13 @@ class TestHasIndividualParents(tests.PyslimTestCase):
                 # should have parents when individual and both parents are remembered or alive
                 for b in definitely_slim_p:
                     assert b in ts_p
-            for a in ts_p:
-                # all pyslim parents should be legit
-                assert a in slim_p
+            # all pyslim parents should be legit (so set(ts_p) - set(slim_p) should usually be empty)
+            # BUT sometimes we can mistake a grandparent for a parent
+            gfolks = []
+            for a in set(info[sid]["parents"]) - set(ts_p):
+                gfolks.extend(info[a]["parents"])
+            for a in set(ts_p) - set(slim_p):
+                assert a in gfolks

Sorry about that!

Comment thread docs/introduction.rst Outdated
you may recall, this means we have their full genetic ancestry. The sample nodes,
and the individuals containing them, are always present in the tree sequence, which
should be clear in the diagram. (Note that additional nodes can be
:ref:`marked as samples <sec_remembering_individuals>` as detailed in the tutorial.)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'd end this paragraph with "The sample nodes, and the individuals containing them, are always present in the tree sequence." (the rest is a bit confusing at this point).

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Good point, I was probably going too deep too early.

Comment thread docs/tutorial.rst

**************
++++++++++++++
Simplification

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This and the next section ("adding mutations") aren't really part of "combining forward and coalescent simulations" - they're things you'd want to do even without any coalescent simulations at all. I don't think we need the "Combining..." top-level section at all?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Ah, that was because the entire 3-part section has its own introduction. Previously that was the introduction used for the entire tutorial, but it didn't really fit because it was only relevant to the "recapitation -> simplification -> mutation" part. I guess a simple way to change this is to change the section heading to "recapitation, simplification, and mutation". But perhaps there's a better way?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Right. This is a symptom of the docs being just cobbled together, and needing an overhaul. Those three things are together because they're part of the expected workflow. Maybe a heading titled "The standard workflow"? Or, "Common preprocessing steps"? Or, "The first things to do with your tree sequence"? Or, maybe just "Recapitation, simplification, and mutation", as you say; we'll rearrange later.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I changed it to "Recapitation, simplification, and mutation", and added a bit of intro to explain that this is a common workflow.

I have overhauled some of the other sections a bit, and I think that makes them a tiny bit less of a hotchpotch. But I don't want to do much more (especially if we are going to move this over to a jupyter-book anyway).

Comment thread docs/tutorial.rst Outdated

By default, a call to ``treeSeqRememberIndividuals()`` will permanently remember one or
more individuals, by marking their nodes as actual samples: the simulated equivalent of
ancient DNA dug out of permafrost, or stored

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nice

@petrelharp

Copy link
Copy Markdown
Contributor

Whoops - I was looking at an out-of-date version, and have deleted a few comments above. Looking good! I like the new Introduction figure!

@petrelharp

Copy link
Copy Markdown
Contributor

although it's on the "tutorial" page, the "remembering and retaining" section doesn't actually have any code to follow. Which seems a bit odd.

Good point. And the subsequent sections ("Extracting particular individuals" and "Individual metadata") should arguably go earlier, because they describe more basic things people would want to do. Maybe we should put in a simple example that uses remembering or retaining? e.g. just Remember everyone halfway through a nonWF simulation and then report the age structure at the time. I could throw tihs in a separate PR if you like.

@petrelharp

Copy link
Copy Markdown
Contributor

Looks good! I approve!

@hyanwong

hyanwong commented Feb 5, 2021

Copy link
Copy Markdown
Member Author

Well, the failing test is the same problem as above: individual 78 has parents 62 and 65, but only 62 is retained, and so we mistake 65's parent, 52, for 78's parent, because apparently 52 is still alive when 78 is born, and 78 inherited the entire chromosome from 52. So, overly strict tests again, I guess - I only really designed these individual_parents( ) methods for when everyone is remembered.

Ah, embarrassed to say that I didn't follow too deeply what the problem was, so I didn't spot this, sorry (I was focussing on the docs instead) Thanks for the fix. It all passes now. I'll address your revised comments above, fix the SVG, and hopefully this will be good to go, so I can move on to the final tskit fix.

@hyanwong

Copy link
Copy Markdown
Member Author

This all looks great @petrelharp thanks for all your work on this and the associated fixes/tests in MesserLab/SLiM#158 and tskit-dev/tskit#1190 . I didn't realise how much work it would be to get all these moving parts working together 🤯 But it looks like it's all done now, so 🎉

@petrelharp

Copy link
Copy Markdown
Contributor

Whoo! I think it's working now! Tests passed locally. I think I'll be ready to squash & merge. Let me know if you spot anything.

@codecov-io

Copy link
Copy Markdown

Codecov Report

Merging #125 (f1a59fe) into main (4fa846b) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #125      +/-   ##
==========================================
+ Coverage   89.39%   89.40%   +0.01%     
==========================================
  Files           5        5              
  Lines         886      887       +1     
  Branches      166      166              
==========================================
+ Hits          792      793       +1     
  Misses         64       64              
  Partials       30       30              
Impacted Files Coverage Δ
pyslim/provenance.py 87.35% <ø> (ø)
pyslim/slim_tree_sequence.py 95.37% <100.00%> (+0.01%) ⬆️

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 4fa846b...f1a59fe. Read the comment docs.

@hyanwong

Copy link
Copy Markdown
Member Author

LGTM. Squash & merge away! (maybe even merge tskit-dev/tskit#1190 in tskit beforehand?)

and relax parents test
@petrelharp
petrelharp merged commit e73f80d into tskit-dev:main Feb 20, 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