Skip to content

Conversation

@pbashyal-nmdp
Copy link
Contributor

@pbashyal-nmdp pbashyal-nmdp commented Sep 24, 2021

Add pyard-status command to check the status of all tables in the databases. This will help to see if there are missing tables and also to compare number of data between versions.

-------------------------------------------
IMGT DB Version: 3450
-------------------------------------------
|Table Name          |Rows                |
|-----------------------------------------|
|dup_g               |                  50|
|dup_lg              |                   2|
|dup_lgx             |                   2|
|g_group             |               10841|
|lg_group            |               10841|
|lgx_group           |               10841|
|exon_group          |                9724|
|p_group             |                9724|
|alleles             |               33525|
|xx_codes            |                1690|
|who_alleles         |               31552|
|who_group           |               31930|
-------------------------------------------

The missing tables are noted and the database can be rebuilt with pyard-import --re-install

-------------------------------------------
IMGT DB Version: 3290
-------------------------------------------
|Table Name          |Rows                |
|-----------------------------------------|
|dup_g               |                  17|
|dup_lg              |                   0|
|dup_lgx             |                   0|
|g_group             |                2786|
|lg_group            |                2786|
|lgx_group           |                2786|
MISSING: exon_group table
MISSING: p_group table
|alleles             |               18451|
|xx_codes            |                 946|
MISSING: who_alleles table
MISSING: who_group table
-------------------------------------------

Fixes #73

…atabases. This will help to see if there are missing tables and also to compare number of data between versions.

```
-------------------------------------------
IMGT DB Version: 3450
-------------------------------------------
|Table Name          |Rows                |
|-----------------------------------------|
|dup_g               |                  50|
|dup_lg              |                   2|
|dup_lgx             |                   2|
|g_group             |               10841|
|lg_group            |               10841|
|lgx_group           |               10841|
|exon_group          |                9724|
|p_group             |                9724|
|alleles             |               33525|
|xx_codes            |                1690|
|who_alleles         |               31552|
|who_group           |               31930|
-------------------------------------------
```

The missing tables are noted and the database can be rebuilt with `pyard-import --re-install`

-------------------------------------------
IMGT DB Version: 3290
-------------------------------------------
|Table Name          |Rows                |
|-----------------------------------------|
|dup_g               |                  17|
|dup_lg              |                   0|
|dup_lgx             |                   0|
|g_group             |                2786|
|lg_group            |                2786|
|lgx_group           |                2786|
MISSING: exon_group table
MISSING: p_group table
|alleles             |               18451|
|xx_codes            |                 946|
MISSING: who_alleles table
MISSING: who_group table
-------------------------------------------
```
@pbashyal-nmdp pbashyal-nmdp added the enhancement New feature or request label Sep 24, 2021
@pbashyal-nmdp pbashyal-nmdp added this to the Version 0.6.0 milestone Sep 24, 2021
@pbashyal-nmdp
Copy link
Contributor Author

Merging this myself as I want to create a new release.

@pbashyal-nmdp pbashyal-nmdp merged commit 49956e8 into nmdp-bioinformatics:master Sep 27, 2021
@pbashyal-nmdp pbashyal-nmdp deleted the db_status_check branch September 27, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a status check of the database.

1 participant