veg / hivclustering

Infer molecular transmission networks from pairwise distance files (part of HIV-TRACE)
2 stars 5 forks source link

Inconsistent schema #37

Closed stevenweaver closed 1 year ago

stevenweaver commented 3 years ago

Using three different runs, I've encountered three different schemas using the same parameters.

Example, for the Nodes.cluster key:

{
  "cluster": [
    1,
    1,
    1,
    1,
    1,
    1,
    1,
    1,
"cluster" : {
  "keys": {
    "0": 5704,
    "1": 5705,
    "2": 5706,
    "3": 5707,
    "4": 5708,
    "5": 5709,
    "6": 5710,
undefined

because Nodes is structured as

 19     # # Node
 20     # [
 21     #     {
 22     #         "attributes": [],
 23     #         "baseline": null,
 24     #         "cluster": 1,
 25     #         "edi": null,
 26     #         "id": "N5"
 27     #     },
 28     # ]
stevenweaver commented 1 year ago

Closing since I think this has to do whether the compact setting is turned on or not.