|
@@ -12,11 +12,6 @@ use crate::{
|
|
|
variant::vcf_variant::{Info, VcfVariant},
|
|
variant::vcf_variant::{Info, VcfVariant},
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-
|
|
|
|
|
-// TODO;
|
|
|
|
|
-// handle: chr5 141739987 rs1754540290 G A . PASS GENEINFO=PCDHB13:56123;NSM;RS=1754540290;SSR=0;VC=SNV;dbSNPBuildID=155
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Encode, Decode)]
|
|
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Encode, Decode)]
|
|
|
pub struct DbSnpFreqEntry {
|
|
pub struct DbSnpFreqEntry {
|
|
|
pub source: String,
|
|
pub source: String,
|
|
@@ -192,13 +187,14 @@ pub fn annotate_dbsnp(
|
|
|
None
|
|
None
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
- if let Some(freq) = freq {
|
|
|
|
|
- annotations.insert_update(
|
|
|
|
|
- variant.hash,
|
|
|
|
|
- &[Annotation::DbSnp(dv.id.clone(), freq)],
|
|
|
|
|
- );
|
|
|
|
|
- break;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ annotations.insert_update(
|
|
|
|
|
+ variant.hash,
|
|
|
|
|
+ &[Annotation::DbSnp(
|
|
|
|
|
+ dv.id.clone(),
|
|
|
|
|
+ freq.unwrap_or(DbSnpFreq(Vec::new())),
|
|
|
|
|
+ )],
|
|
|
|
|
+ );
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|