Skip to content

Redundancy in the 2 data files #22

@tseemann

Description

@tseemann

https://github.com/MDU-PHL/mlstdb/tree/main/src/mlstdb/data

  1. database species scheme_description scheme URI
  2. scheme URI

Are both of these files needed?

I was wondering if we should havbe 2 files

  1. databases.tsv
    It has db_name and db_url
    Only two entries publist and pasteur
    their URLS would have the 'template' for the API for a scheme
    eg.https://rest.pubmlst.org/db/pubmlst_{scheme_name}_seqdef/schemes/{schewm_id}
    with the 2 special variables.
    (this would be a good way to learn new python f-strings ?

  2. schemes.txt
    Has db_name (key into databases.txt)
    And scheme_name eg suareus
    And scheme_id eg. 1

This would make it easier to maintain and add new database sources.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions