Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • C CSpec Reasoner SVI
  • Project information
    • Project information
    • Activity
    • Members
  • Wiki
    • Wiki
  • Activity
Collapse sidebar
  • ClinGenClinGen
  • cspec
  • CSpec Reasoner SVI
  • Wiki
  • API

API · Changes

Page history
Update API authored Nov 03, 2022 by Neethu Shah's avatar Neethu Shah
Hide whitespace changes
Inline Side-by-side
API.md
View page @ feca8f73
...@@ -23,30 +23,29 @@ Assertion API endpoint for computing variant pathogenicity given a set of eviden ...@@ -23,30 +23,29 @@ Assertion API endpoint for computing variant pathogenicity given a set of eviden
> } > }
> } > }
> ``` > ```
> Example of how the route works:
A.4) Example of how the route works: > ```plaintext
> const SimpleJsonReq = require( "@brl/brl-gb/client/simple/simpleJsonReq" ).SimpleJsonReq
```plaintext > let baseUrl = "https://cspec.genome.network/cspec/eng/svi"
const SimpleJsonReq = require( "@brl/brl-gb/client/simple/simpleJsonReq" ).SimpleJsonReq > let clientOpts = { timeout: 600000 }
let baseUrl = "https://cspec.genome.network/cspec/eng/svi" > let jsClient = undefined
let clientOpts = { timeout: 600000 } > let resp = undefined
let jsClient = undefined > jsClient = new SimpleJsonReq( baseUrl, clientOpts )
let resp = undefined > let reqConfig = {
jsClient = new SimpleJsonReq( baseUrl, clientOpts ) > serverCertCheck : false,
let reqConfig = { > data: payload
serverCertCheck : false, > }
data: payload > resp = await jsClient.doGet('/assertion', reqConfig)
} global.brl.dot.pick('data', resp.data)
resp = await jsClient.doGet('/assertion', reqConfig) > { comment:
> global.brl.dot.pick('data', resp.data) > 'Two assertions: Pathogenic and Likely Pathogenic were made. In such case the final call is the highest strength call, hence the allele is Pathogenic',
{ comment: > finalCall: 'Pathogenic',
'Two assertions: Pathogenic and Likely Pathogenic were made. In such case the final call is the highest strength call, hence the allele is Pathogenic', > rules:
finalCall: 'Pathogenic', > [ { conditions: [Array], inference: 'Pathogenic', rule: 'Rule1' },
rules: > { conditions: [Array], inference: 'Pathogenic', rule: 'Rule2' },
[ { conditions: [Array], inference: 'Pathogenic', rule: 'Rule1' }, > { conditions: [Array],
{ conditions: [Array], inference: 'Pathogenic', rule: 'Rule2' }, > inference: 'Likely Pathogenic',
{ conditions: [Array], > rule: 'Rule20' } ],
inference: 'Likely Pathogenic', > statusObj: { name: 'assertion computed', status: 'ok' } }
rule: 'Rule20' } ], > ```
statusObj: { name: 'assertion computed', status: 'ok' } } \ No newline at end of file
```
\ No newline at end of file
Clone repository
  • API
  • Home