Skip to content

Commit

Permalink
Hide full Pfam track if showing Pfam domain tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
kimrutherford committed Nov 2, 2024
1 parent cb3b505 commit 276637e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pombase/api_data.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>
Expand Down

0 comments on commit 276637e

Please sign in to comment.