Closed berntpopp closed 3 months ago
This step should be build from two config files:
[
{
"transcript_consequences": [
{
"impact": "impact_variant",
"cadd_phred": "cadd_phred_variant",
},
],
"colocated_variants": [
{
"frequencies": {
"T": {
"gnomade": "gnomade_variant"
}
},
}
],
}
]
[
{
"meta_score": cadd_phred_variant * 2 + gnomade_variant * 10
}
]
Implement a new scoring functionality within the variant-linker tool to calculate meta scores based on VEP annotations. This feature will enhance the tool's capabilities by providing users with additional insights through custom scoring algorithms.
Configuration Files
Schema.org Style Configuration
Transformation and Conditional Logic
Integration with Variant-Linker
Variable Assignment Configuration
[
{
"transcript_consequences": [
{
"impact": "impact_variant",
"cadd_phred": "cadd_phred_variant"
}
],
"colocated_variants": [
{
"frequencies": {
"T": {
"gnomad": "gnomad_variant"
}
}
}
]
}
]
Formula Configuration
[
{
"meta_score": "cadd_phred_variant * 2 + gnomad_variant * 10"
}
]
Variable Assignment Configuration Schema
{
"@context": "https://schema.org/",
"@type": "Configuration",
"variables": {
"transcript_consequences": {
"impact": "impact_variant",
"cadd_phred": "cadd_phred_variant"
},
"colocated_variants": {
"frequencies": {
"T": {
"gnomad": "gnomad_variant"
}
}
}
}
}
Formula Configuration Schema
{
"@context": "https://schema.org/",
"@type": "Configuration",
"formulas": [
{
"meta_score": "cadd_phred_variant * 2 + gnomad_variant * 10"
}
]
}
Command-Line Option
const argv = yargs
.option('scoring_config', {
alias: 'sc',
description: 'Path to the scoring configuration file',
type: 'string'
})
// existing options...
Scoring Function Implementation
Implementation of testing will be handled in #5
Proposed Solution
Acceptance Criteria