From 276637ed4e3f3514c211e6e859076f3f6bab486b Mon Sep 17 00:00:00 2001 From: Kim Rutherford Date: Sat, 2 Nov 2024 18:45:16 +1300 Subject: [PATCH] Hide full Pfam track if showing Pfam domain tracks Refs pombase/website#2267 --- src/pombase/api_data.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pombase/api_data.rs b/src/pombase/api_data.rs index 1d45433d..2c0d9ca7 100644 --- a/src/pombase/api_data.rs +++ b/src/pombase/api_data.rs @@ -1033,7 +1033,9 @@ impl APIData { ProteinViewType::Widget => prot_feat_conf.widget_tracks.contains(&track.name), ProteinViewType::DomainsAndFeatures => { - track.name.to_ascii_lowercase().starts_with("pfam") || + let lc_track_name = track.name.to_ascii_lowercase(); + (lc_track_name.starts_with("pfam") && + lc_track_name != "pfam domains") || prot_feat_conf.domains_and_features_tracks.contains(&track.name) }, ProteinViewType::Modifications =>