From 85a4c99dae56d351e227055f25ef8e1e3b159c9f Mon Sep 17 00:00:00 2001 From: Till Hartmann Date: Fri, 26 Jul 2024 09:52:33 +0200 Subject: [PATCH] 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