> For the complete documentation index, see [llms.txt](https://gitbook.bergelsonlab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.bergelsonlab.com/data-pipeline/basic-levels/update-annotations-in-chas-and-opf.md).

# Update annotations in CHAs and OPF

* Copy the CHAs/OPFs you want to update into a separate folder and edit the copies only.
* Update using CLAN/DataVyu or any other way you prefer.
* Go to a local clone of "annotated\_cha" or "annotated\_opf" repositories (you might need to create one first).
* Run "backup.py". Check the diff, commit, push. This will sync the CHAs/OPFs from "Seedlings/Subject\_Files" to your local clone.
* Copy new CHAs/OPFs to the appropriate places in the repository (for OPFs, see "annotated\_opfs/opfs\_to\_unpack/README.md"). Check the diff, commit, push.
* Run "restore.py". This will sync CHAs/OPFs from your local clone to "Seedlings/Subject\_Files".
* Propagate the changes down the [pipeline to seedlings-nouns](/data-pipeline/basic-levels.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://gitbook.bergelsonlab.com/data-pipeline/basic-levels/update-annotations-in-chas-and-opf.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
