Changes
Page history
Update Populate database
authored
Feb 18, 2022
by
Kenzo-Hugo Hillion
Show whitespace changes
Inline
Side-by-side
Populate-database.md
View page @
42d9629a
[[
_TOC_
]]
# Creating the database
To create new entries, everything goes through the API using the
`/api/admin_db`
route.
## 🐤 Create and Populate Test DB
You can create a test database using the API directly and some test files available on the repository.
...
...
@@ -23,6 +27,13 @@ poetry run create_test_db
## 🐔 Populate DB with real data
Title | route | input path
----- | ----- | ----------
Create KEGG database |
`/api/admin_db/create_kegg_ko`
| no input file necessary, process is quick for all KEGG KO.
NCBI taxonomy |
`/api/admin_db/create_ncbi_taxonomy`
|
`https://ftp.ncbi.nih.gov/pub/taxonomy/taxdump.tar.gz`
NCBI taxonomy hierarchy |
`/api/admin_db/generate_ncbi_taxonomy_hierarchy`
| No file necessary, based on existing db
Genes |
`/api/admin_db/create_genes`
| Link to your fasta file
## 📂 Empty DB
```
bash
...
...
...
...