{
  "configuration": {
    "rpc": {
      "defaultDriver": "MainThreadRpcDriver"
    }
  },
  "assemblies": [
    {
      "name": "volvox",
      "aliases": ["vvx"],
      "sequence": {
        "type": "ReferenceSequenceTrack",
        "trackId": "volvox_refseq",
        "metadata": {
          "date": "2020-08-20"
        },
        "formatAbout": {
          "hideUris": true,
          "config": "jexl:{extraField:'important data'}"
        },
        "adapter": {
          "type": "TwoBitAdapter",
          "twoBitLocation": {
            "uri": "volvox.2bit",
            "locationType": "UriLocation"
          }
        }
      },
      "refNameAliases": {
        "adapter": {
          "type": "FromConfigAdapter",
          "adapterId": "W6DyPGJ0UU",
          "features": [
            {
              "refName": "ctgA",
              "uniqueId": "alias1",
              "aliases": ["A", "contigA"]
            },
            {
              "refName": "ctgB",
              "uniqueId": "alias2",
              "aliases": ["B", "contigB"]
            }
          ]
        }
      }
    },
    {
      "name": "volvox_oauth",
      "sequence": {
        "type": "ReferenceSequenceTrack",
        "trackId": "volvox_oauth-ReferenceSequenceTrack",
        "adapter": {
          "type": "TwoBitAdapter",
          "twoBitLocation": {
            "uri": "http://localhost:3030/data/volvox.2bit",
            "locationType": "UriLocation",
            "internetAccountId": "customOAuth"
          }
        }
      }
    },
    {
      "name": "volvox_basic_auth",
      "sequence": {
        "type": "ReferenceSequenceTrack",
        "trackId": "volvox_basic_auth-ReferenceSequenceTrack",
        "adapter": {
          "type": "TwoBitAdapter",
          "twoBitLocation": {
            "uri": "http://localhost:3040/data/volvox.2bit",
            "locationType": "UriLocation",
            "internetAccountId": "customBasicAuth"
          }
        }
      }
    }
  ],
  "connections": [],
  "defaultSession": {
    "name": "Integration test example",
    "views": [
      {
        "id": "integration_test",
        "type": "LinearGenomeView",
        "offsetPx": 2000,
        "bpPerPx": 0.05,
        "displayedRegions": [
          {
            "refName": "ctgA",
            "start": 0,
            "end": 50001,
            "assemblyName": "volvox"
          }
        ]
      }
    ],
    "widgets": {
      "hierarchicalTrackSelector": {
        "id": "hierarchicalTrackSelector",
        "type": "HierarchicalTrackSelectorWidget",
        "filterText": "",
        "view": "integration_test"
      }
    },
    "activeWidgets": {
      "hierarchicalTrackSelector": "hierarchicalTrackSelector"
    }
  },
  "tracks": [
    {
      "type": "QuantitativeTrack",
      "trackId": "dropbox_bigwig",
      "name": "Dropbox BigWig",
      "category": ["Authentication"],
      "assemblyNames": ["volvox"],
      "adapter": {
        "type": "BigWigAdapter",
        "bigWigLocation": {
          "uri": "https://www.dropbox.com/s/96wflrzcbmf7nlj/volvox.bw?dl=0",
          "locationType": "UriLocation",
          "internetAccountId": "dropboxOAuth"
        }
      }
    },
    {
      "type": "QuantitativeTrack",
      "trackId": "google_bigwig",
      "name": "Google Drive BigWig",
      "category": ["Authentication"],
      "assemblyNames": ["volvox"],
      "adapter": {
        "type": "BigWigAdapter",
        "bigWigLocation": {
          "locationType": "UriLocation",
          "uri": "https://drive.google.com/file/d/1PIvZCOJioK9eBL1Vuvfa4L_Fv9zTooHk/view?usp=sharing",
          "internetAccountId": "googleOAuth"
        }
      }
    },
    {
      "type": "QuantitativeTrack",
      "trackId": "oauth_bigwig",
      "name": "OAuth BigWig",
      "category": ["Authentication"],
      "assemblyNames": ["volvox", "volvox_oauth", "volvox_basic_auth"],
      "adapter": {
        "type": "BigWigAdapter",
        "bigWigLocation": {
          "locationType": "UriLocation",
          "uri": "http://localhost:3030/data/volvox.bw",
          "internetAccountId": "customOAuth"
        }
      }
    },
    {
      "type": "VariantTrack",
      "trackId": "oauth_vcf",
      "name": "OAuth VCF",
      "assemblyNames": ["volvox", "volvox_oauth", "volvox_basic_auth"],
      "category": ["Authentication"],
      "adapter": {
        "type": "VcfTabixAdapter",
        "vcfGzLocation": {
          "uri": "http://localhost:3030/data/volvox.filtered.vcf.gz",
          "locationType": "UriLocation",
          "internetAccountId": "customOAuth"
        },
        "index": {
          "location": {
            "uri": "http://localhost:3030/data/volvox.filtered.vcf.gz.tbi",
            "locationType": "UriLocation",
            "internetAccountId": "customOAuth"
          }
        }
      }
    },
    {
      "type": "QuantitativeTrack",
      "trackId": "basicauth_bigwig",
      "name": "BasicAuth BigWig",
      "category": ["Authentication"],
      "assemblyNames": ["volvox", "volvox_basic_auth"],
      "adapter": {
        "type": "BigWigAdapter",
        "bigWigLocation": {
          "locationType": "UriLocation",
          "uri": "http://localhost:3040/data/volvox.bw",
          "internetAccountId": "customBasicAuth"
        }
      }
    },
    {
      "type": "VariantTrack",
      "trackId": "basicauth_vcf",
      "name": "BasicAuth VCF",
      "assemblyNames": ["volvox", "volvox_basic_auth"],
      "category": ["Authentication"],
      "adapter": {
        "type": "VcfTabixAdapter",
        "vcfGzLocation": {
          "uri": "http://localhost:3040/data/volvox.filtered.vcf.gz",
          "locationType": "UriLocation",
          "internetAccountId": "customBasicAuth"
        },
        "index": {
          "location": {
            "uri": "http://localhost:3040/data/volvox.filtered.vcf.gz.tbi",
            "locationType": "UriLocation",
            "internetAccountId": "customBasicAuth"
          }
        }
      }
    }
  ],

  "internetAccounts": [
    {
      "type": "DropboxOAuthInternetAccount",
      "internetAccountId": "dropboxOAuth",
      "name": "Dropbox",
      "description": "Account to access Dropbox files",
      "clientId": "50knr6xrjfc39sk"
    },
    {
      "type": "GoogleDriveOAuthInternetAccount",
      "internetAccountId": "googleOAuth",
      "name": "Google Drive",
      "description": "Account to access Google Drive files",
      "clientId": "109518325434-udfch80a0v70mgu65d5fejqsq5kvhm1b.apps.googleusercontent.com"
    },
    {
      "type": "OAuthInternetAccount",
      "internetAccountId": "customOAuth",
      "name": "OAuth test account",
      "description": "OAuth account for testing",
      "clientId": "myClientId",
      "authEndpoint": "http://localhost:3030/oauth",
      "tokenEndpoint": "http://localhost:3030/oauth/token",
      "hasRefreshToken": true
    },
    {
      "type": "HTTPBasicInternetAccount",
      "internetAccountId": "customBasicAuth",
      "name": "HTTP BasicAuth test account",
      "description": "HTTP BasicAuth account for testing"
    }
  ]
}
