hodcroftlab / covariants

Real-time updates and information about key SARS-CoV-2 variants, plus the scripts that generate this information.

Home Page:https://covariants.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please add TSV file format for the USA states variant tables file

BethPathak opened this issue · comments

Dear Emma:

We would be very appreciative if you could duplicate the Jul 3 (and future) JSON file and also release it in TSV format.

Many thanks,
Beth Pathak

Dear @BethPathak - thank you for your message! I'm afraid I won't be releasing the files in TSV format, as the file sizes are already quite large, and duplicating them would take up more space for the repository and updates. However, the JSON file for the USA is available in two slightly different JSON formats - some people find this file format easier to parse (this file contains just USA state data). The other file contains all the data - look for the part of the JSON that is region: United States.

There are many JSON libraries available that can help you parse JSON files into whatever format you find most useful. I know JSON can not always be the easiest format, but it's incredibly machine friendly, which is why we use it. I'd suggest giving the first file (USA only) a look - it's a little more straightforward in layout and may be easier for you to transform.
I hope that helps!