Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions metadata.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ import json

ts = tskit.load("data/metadata.trees")
```
(sec_tutorial_metadata_reading)=

## Reading metadata and schemas

Expand Down Expand Up @@ -107,6 +108,8 @@ If there is no schema (i.e. it is equal to ``MetadataSchema(None)``) for a table
or top-level metadata, then no decoding is performed and ``bytes`` will be returned.
:::

(sec_tutorial_metadata_modifying)=

## Modifying metadata and schemas

If you are creating or modifying a tree sequence by changing the underlying tables,
Expand Down Expand Up @@ -200,6 +203,8 @@ print(tables.individuals[new_id].metadata)

To modify the metadata of rows in tables use the {ref}`sec_tutorial_metadata_bulk`.

(sec_tutorial_metadata_viewing_raw)=

## Viewing raw metadata

If you need to see the raw (i.e. bytes) metadata, you just need to remove the
Expand Down