|
|
|
## 📝 Populate test DB
|
|
|
|
|
|
|
|
You can create a test database using the API directly and some test files available on the repository.
|
|
|
|
|
|
|
|
> 💬 *You can use directly the [documentation page](http://localhost/docs) to run the different commands.*
|
|
|
|
|
|
|
|
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://gitlab.pasteur.fr/metagenomics/fastgenes/-/raw/25-gene-annotations/data_test/ncbi_taxonomy/taxdump.tar.gz?inline=false`
|
|
|
|
NCBI taxonomy hierarchy | `/api/admin_db/generate_ncbi_taxonomy_hierarchy` | No file necessary, based on existing db
|
|
|
|
Genes | `/api/admin_db/create_genes` | `https://gitlab.pasteur.fr/metagenomics/fastgenes/-/raw/25-gene-annotations/data_test/genes/genes.fa?inline=false`
|
|
|
|
|
|
|
|
#### 💀 Deprecated way
|
|
|
|
|
|
|
|
From `backend/app` directory:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
poetry run create_test_db
|
|
|
|
``` |