Bug #5572

'data_type' field in profile JSON report does not correctly have type

Added by Abram Connelly over 6 years ago.

Status:
New
Priority:
Normal
Assigned To:
-
Category:
-
Target version:
-
Start date:
03/25/2015
Due date:
% Done:

0%

Estimated time:
Story points:
-

Description

Sometimes the 'data_type' is not present or null even though there is a data type.

For example, looking at 'https://my.pgp-hms.org/profile/hu9385BA', there is a CGI file with a 'Data type' of 'Complete Genomics' but when querying 'https://my.pgp-hms.org/profile/hu9385BA.json', the 'data_type' field for the corresponding entry does not exist.

Here is the 'files' array produced:

  ...
  "files": [
    {
      "download_url": null,
      "name": "Microbiome data for PGP kit #2190 \"Caryll\" - Caryll.txt",
      "file_source": "PGP" 
    },
    {
      "download_url": null,
      "name": "Microbiome data for PGP kit #2190 \"Caryll\" - Caryll.fna.gz",
      "file_source": "PGP" 
    },
    {
      "download_url": "http://evidence.personalgenomes.org/genome_download.php?download_genome_id=fe84b12418d4eb010cefd1bdfe3aa8caaa87bd49&download_nickname=Microbiome+report+for+PGP+kit+%232190+%22Caryll%22",
      "name": "Microbiome report for PGP kit #2190 \"Caryll\"",
      "file_source": "PGP" 
    },
    {
      "download_url": "http://evidence.personalgenomes.org/genome_download.php?download_genome_id=02fd4746e8afb67a1fd6b7c2e96d788f68bf71b1&download_nickname=CGI+sample+GS00253-DNA_E01_200_37",
      "name": "CGI sample GS00253-DNA_E01_200_37",
      "file_source": "PGP" 
    }
  ],
...

Also available in: Atom PDF