diff --git a/docs/pedigrees.md b/docs/pedigrees.md index 4e73f9842..b023a94e4 100644 --- a/docs/pedigrees.md +++ b/docs/pedigrees.md @@ -69,9 +69,8 @@ mom_id = pb.add_individual(time=1) dad_id = pb.add_individual(time=1) pb.add_individual(time=0, parents=[mom_id, dad_id], is_sample=True) pedigree = pb.finalise() -# TODO replace with display(pedigree) when its implemented in tskit -# https://github.com/tskit-dev/tskit/issues/2093 -print(pedigree) +display(pedigree.individuals) +display(pedigree.nodes) ``` The pedigree returned by the {meth}`~.PedigreeBuilder.finalise` method @@ -80,6 +79,7 @@ contains the pedigree information defined by the calls to the parents, and because they are founders, we don't provide any information about their parents. Each call to {meth}`~.PedigreeBuilder.add_individual` returns the integer ID of newly added individual. + ### Requirements This section lists the detailed requirements of the low-level encoding @@ -101,7 +101,6 @@ API or the {ref}`sec_pedigrees_file_format`. time and population, as a shorthand.) - An individual's time must be less than all its parent's times. - (sec_pedigrees_metadata)= ## Metadata @@ -147,7 +146,6 @@ See the for examples. ::: - (sec_pedigrees_file_format_definition)= ### Format definition @@ -277,7 +275,6 @@ Here we have two trios, where the child in the second trio is from the same generation as the parents in the second. We use the ``is_sample`` column to specify that ``child2`` is a sample as well as ``child1``. - ### Demography information If the founder individuals of the pedigree belong to different populations