|
|
@@ -129,6 +129,35 @@ impl VEP {
|
|
|
pub fn impact(&self) -> Option<VepImpact> {
|
|
|
self.extra.impact.clone()
|
|
|
}
|
|
|
+
|
|
|
+ pub fn gene(&self) -> Option<String> {
|
|
|
+ self.extra.symbol.clone()
|
|
|
+ }
|
|
|
+
|
|
|
+ pub fn gene_distance(&self) -> Option<u32> {
|
|
|
+ self.extra.distance
|
|
|
+ }
|
|
|
+
|
|
|
+ pub fn feature(&self) -> Option<String> {
|
|
|
+ self.feature.clone()
|
|
|
+ }
|
|
|
+
|
|
|
+ pub fn consequences_str(&self) -> Vec<String> {
|
|
|
+ match &self.consequence {
|
|
|
+ Some(csq) => csq.iter().map(|s| s.to_string()).collect(),
|
|
|
+ None => Vec::new(),
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ pub fn hgvs(&self) -> Option<String> {
|
|
|
+ if self.extra.hgvs_p.is_some() {
|
|
|
+ return self.extra.hgvs_p.clone();
|
|
|
+ }
|
|
|
+ if self.extra.hgvs_c.is_some() {
|
|
|
+ return self.extra.hgvs_c.clone();
|
|
|
+ }
|
|
|
+ None
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
/// Represents the predicted consequences of a genetic variant as determined by
|