iqbal-lab / Mykrobe-predictor

Antibiotic resistance predictions in minutes on a laptop
Other
50 stars 19 forks source link

JSON output can be invalid JSON #10

Closed Phelimb closed 9 years ago

Phelimb commented 9 years ago

{ "species": { "S.aureus": "Major" }, "susceptibility": { "Gentamicin": "S", "Penicillin": "R", "Methicillin": "R", "Trimethoprim": "S", "Erythromycin": "R", "FusidicAcid": "S", "Ciprofloxacin": "R", "Rifampicin": "S", "Tetracycline": "S", "Vancomycin": "S", "Mupirocin": "S", "Clindamycin": "R(inducible)" }, "called_variants": { "gyrA_S84L": { "R_cov": "100", "S_cov": "50" },

},
"called_genes": {
    "blaZ": {
        "cov": "74"
    },
    "ermC": {
        "cov": "99"
    },
    "mecA": {
        "cov": "99"
    },

},
"virulence_toxins": {
    "PVL": "negative"
}

}

Is invalid.

"called_variants": {
    "gyrA_S84L": {
        "R_cov": "100",
        "S_cov": "50"
    }**,**

},

The "," after gyrA_S84L should not be there in the case where there is only one called variant.