Skip to content

Commit 974c3da

Browse files
authored
Merge pull request #247 from hyanwong/patch-47
Update metadata.md
2 parents e053111 + 04c42d0 commit 974c3da

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

metadata.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ import json
7373
7474
ts = tskit.load("data/metadata.trees")
7575
```
76+
(sec_tutorial_metadata_reading)=
7677

7778
## Reading metadata and schemas
7879

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

111+
(sec_tutorial_metadata_modifying)=
112+
110113
## Modifying metadata and schemas
111114

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

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

206+
(sec_tutorial_metadata_viewing_raw)=
207+
203208
## Viewing raw metadata
204209

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

0 commit comments

Comments
 (0)