From 75ea2ba7d211412f0f6291104df82951e1ecd96e Mon Sep 17 00:00:00 2001 From: Till Hartmann Date: Thu, 25 Jul 2024 16:54:34 +0200 Subject: [PATCH 1/2] fix: add selenoprotein biotype --- src/data/cdot/json.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/data/cdot/json.rs b/src/data/cdot/json.rs index 663a80c..3cb2569 100644 --- a/src/data/cdot/json.rs +++ b/src/data/cdot/json.rs @@ -398,6 +398,8 @@ pub mod models { RRna, #[serde(rename = "rRNA_pseudogene")] RnaPseudogene, + #[serde(rename = "selenoprotein")] + Selenoprotein, #[serde(rename = "sense_intronic")] SenseIntronic, #[serde(rename = "sense_overlapping")] From 85a4c99dae56d351e227055f25ef8e1e3b159c9f Mon Sep 17 00:00:00 2001 From: Till Hartmann Date: Fri, 26 Jul 2024 09:52:33 +0200 Subject: [PATCH 2/2] fix: check for selenoprotein biotype as well --- src/data/cdot/json.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/data/cdot/json.rs b/src/data/cdot/json.rs index 3cb2569..fbfb1c1 100644 --- a/src/data/cdot/json.rs +++ b/src/data/cdot/json.rs @@ -992,6 +992,10 @@ impl TxProvider { .unwrap_or_default() .contains(needle) }); + let is_selenoprotein = is_selenoprotein + || tx.biotype.as_ref().map_or(false, |bt| { + bt.contains(&crate::data::cdot::json::models::BioType::Selenoprotein) + }); let hgnc = tx .gene_name