... | @@ -25,27 +25,27 @@ Assertion API endpoint for computing variant pathogenicity given a set of eviden |
... | @@ -25,27 +25,27 @@ Assertion API endpoint for computing variant pathogenicity given a set of eviden |
|
> ```
|
|
> ```
|
|
> Example of how the route works:
|
|
> Example of how the route works:
|
|
|
|
|
|
> ```plaintext
|
|
```plaintext
|
|
> const SimpleJsonReq = require( "@brl/brl-gb/client/simple/simpleJsonReq" ).SimpleJsonReq
|
|
const SimpleJsonReq = require( "@brl/brl-gb/client/simple/simpleJsonReq" ).SimpleJsonReq
|
|
> let baseUrl = "https://cspec.genome.network/cspec/eng/svi"
|
|
let baseUrl = "https://cspec.genome.network/cspec/eng/svi"
|
|
> let clientOpts = { timeout: 600000 }
|
|
let clientOpts = { timeout: 600000 }
|
|
> let jsClient = undefined
|
|
let jsClient = undefined
|
|
> let resp = undefined
|
|
let resp = undefined
|
|
> jsClient = new SimpleJsonReq( baseUrl, clientOpts )
|
|
jsClient = new SimpleJsonReq( baseUrl, clientOpts )
|
|
> let reqConfig = {
|
|
let reqConfig = {
|
|
> serverCertCheck : false,
|
|
serverCertCheck : false,
|
|
> data: payload
|
|
data: payload
|
|
> }
|
|
}
|
|
> resp = await jsClient.doGet('/assertion', reqConfig)
|
|
resp = await jsClient.doGet('/assertion', reqConfig)
|
|
global.brl.dot.pick('data', resp.data)
|
|
> global.brl.dot.pick('data', resp.data)
|
|
> { comment:
|
|
{ comment:
|
|
> 'Two assertions: Pathogenic and Likely Pathogenic were made. In such case the final call is the highest strength call, hence the allele is 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',
|
|
> finalCall: 'Pathogenic',
|
|
finalCall: 'Pathogenic',
|
|
> rules:
|
|
rules:
|
|
> [ { conditions: [Array], inference: 'Pathogenic', rule: 'Rule1' },
|
|
[ { conditions: [Array], inference: 'Pathogenic', rule: 'Rule1' },
|
|
> { conditions: [Array], inference: 'Pathogenic', rule: 'Rule2' },
|
|
{ conditions: [Array], inference: 'Pathogenic', rule: 'Rule2' },
|
|
> { conditions: [Array],
|
|
{ conditions: [Array],
|
|
> inference: 'Likely Pathogenic',
|
|
inference: 'Likely Pathogenic',
|
|
> rule: 'Rule20' } ],
|
|
rule: 'Rule20' } ],
|
|
> statusObj: { name: 'assertion computed', status: 'ok' } }
|
|
statusObj: { name: 'assertion computed', status: 'ok' } }
|
|
> ``` |
|
``` |
|
\ No newline at end of file |
|
\ No newline at end of file |