Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add-new-source.md updates #307

Merged
merged 1 commit into from
May 18, 2023
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
34 changes: 31 additions & 3 deletions docs/developer/add-new-source.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,34 @@
# How to add a new source to the Mondo Ingest
In several of the filename patterns below, `*` represents the ontology name/id.

1. Add a new import and component to [src/ontology/mondo-ingest-odk.yaml](https://github.com/monarch-initiative/mondo-ingest/blob/main/src/ontology/mondo-ingest-odk.yaml).
2. Add a new metadata file to [src/ontology/metadata](https://github.com/monarch-initiative/mondo-ingest/blob/main/src/ontology/metadata). It is important we try and document as much about the source as we can.
3. Update the Website Table of Contents [mkdocs.yaml](https://github.com/monarch-initiative/mondo-ingest/blob/main/mkdocs.yaml)
## 1. `mondo-ingest-odk.yaml`
### 1.1. Add source info
Add a new filename and URL to the `products` > `components` section in [src/ontology/mondo-ingest-odk.yaml](https://github.com/monarch-initiative/mondo-ingest/blob/main/src/ontology/mondo-ingest-odk.yaml).
joeflack4 marked this conversation as resolved.
Show resolved Hide resolved

### 1.2. `update_repo`
From `src/ontology`, run `sh run.sh make update_repo`.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matentzn Added this next step about update_repo

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a note about it needing to run twice as well. However, as I mentioned in this comment, running it a second time did not seem to do anything for me.


What this does: This will update several files, including the addition of components goals to src/ontology/Makefile.

It is possible you may need to run this command twice. The first time will update the update process itself, and the
second time will run the update.


## 2. `metadata/*.yaml`
Add a new metadata file to [src/ontology/metadata](https://github.com/monarch-initiative/mondo-ingest/blob/main/src/ontology/metadata). It is important we try and document as much about the source as we can.

## 3. Docs
### 3.1. `mkdocs.yaml`
Update the Website Table of Contents in [mkdocs.yaml](https://github.com/monarch-initiative/mondo-ingest/blob/main/mkdocs.yaml)

### 3.2. `docs/sources/*.md`
Run `sh run.sh make ../../docs/sources/*.md` from `src/ontology`. Then edit it manually to add any more informatoin.

### 3.3. `docs/sources.md`
Add a link to your new `.md` file created in the last step.

### 3.4. `docs/metrics/*.md`
Run `sh run.sh make ../../docs/metrics/*.md` from `src/ontology`.

### 3.5. `docs/metrics.md`
Add a link to your new `.md` file created in the last step.