@@ -457,6 +457,12 @@ class IndividualTable(BaseTable, MetadataMixin):
457457 :ivar location_offset: The array of offsets into the location column. See
458458 :ref:`sec_encoding_ragged_columns` for more details.
459459 :vartype location_offset: numpy.ndarray, dtype=np.uint32
460+ :ivar parents: The flattened array of parent individual ids. See
461+ :ref:`sec_encoding_ragged_columns` for more details.
462+ :vartype parents: numpy.ndarray, dtype=np.int32
463+ :ivar parents_offset: The array of offsets into the parents column. See
464+ :ref:`sec_encoding_ragged_columns` for more details.
465+ :vartype parents_offset: numpy.ndarray, dtype=np.uint32
460466 :ivar metadata: The flattened array of binary metadata values. See
461467 :ref:`sec_tables_api_binary_columns` for more details.
462468 :vartype metadata: numpy.ndarray, dtype=np.int8
@@ -522,6 +528,8 @@ def add_row(self, flags=0, location=None, parents=None, metadata=None):
522528 :param array-like location: A list of numeric values or one-dimensional numpy
523529 array describing the location of this individual. If not specified
524530 or None, a zero-dimensional location is stored.
531+ :param array-like parents: A list or array of ids of parent individuals. If not
532+ specified an empty array is stored.
525533 :param object metadata: Any object that is valid metadata for the table's schema.
526534 Defaults to the default metadata value for the table's schema. This is
527535 typically ``{}``. For no schema, ``None``.
@@ -555,6 +563,8 @@ def set_columns(
555563 the table will contain.
556564 The ``location`` and ``location_offset`` parameters must be supplied
557565 together, and meet the requirements for :ref:`sec_encoding_ragged_columns`.
566+ The ``parents`` and ``parents_offset`` parameters must be supplied
567+ together, and meet the requirements for :ref:`sec_encoding_ragged_columns`.
558568 The ``metadata`` and ``metadata_offset`` parameters must be supplied
559569 together, and meet the requirements for :ref:`sec_encoding_ragged_columns`.
560570 See :ref:`sec_tables_api_binary_columns` for more information and
@@ -568,6 +578,12 @@ def set_columns(
568578 :type location: numpy.ndarray, dtype=np.float64
569579 :param location_offset: The offsets into the ``location`` array.
570580 :type location_offset: numpy.ndarray, dtype=np.uint32.
581+ :param parents: The flattened parents array. Must be specified along
582+ with ``parents_offset``. If not specified or None, an empty parents array
583+ is stored for each individual.
584+ :type parents: numpy.ndarray, dtype=np.int32
585+ :param parents_offset: The offsets into the ``parents`` array.
586+ :type parents_offset: numpy.ndarray, dtype=np.uint32.
571587 :param metadata: The flattened metadata array. Must be specified along
572588 with ``metadata_offset``. If not specified or None, an empty metadata
573589 value is stored for each individual.
@@ -606,6 +622,8 @@ def append_columns(
606622
607623 The ``flags`` array is mandatory and defines the number of
608624 extra individuals to add to the table.
625+ The ``parents`` and ``parents_offset`` parameters must be supplied
626+ together, and meet the requirements for :ref:`sec_encoding_ragged_columns`.
609627 The ``location`` and ``location_offset`` parameters must be supplied
610628 together, and meet the requirements for :ref:`sec_encoding_ragged_columns`.
611629 The ``metadata`` and ``metadata_offset`` parameters must be supplied
@@ -624,6 +642,11 @@ def append_columns(
624642 :param metadata: The flattened metadata array. Must be specified along
625643 with ``metadata_offset``. If not specified or None, an empty metadata
626644 value is stored for each individual.
645+ :param parents: The flattened parents array. Must be specified along
646+ with ``parents_offset``. If not specified or None, an empty parents array
647+ is stored for each individual.
648+ :type parents: numpy.ndarray, dtype=np.int32
649+ :param parents_offset: The offsets into the ``parents`` array.
627650 :type metadata: numpy.ndarray, dtype=np.int8
628651 :param metadata_offset: The offsets into the ``metadata`` array.
629652 :type metadata_offset: numpy.ndarray, dtype=np.uint32.
@@ -663,7 +686,7 @@ def packset_parents(self, parents):
663686 must be equal to the number of rows in the table.
664687
665688 :param list parents: A list of list of parent ids, interpreted as numpy int32
666- arrays
689+ arrays.
667690 """
668691 packed , offset = util .pack_arrays (parents , np .int32 )
669692 d = self .asdict ()
0 commit comments