Skip to content

Commit

Permalink
Updated Gno urls
Browse files Browse the repository at this point in the history
  • Loading branch information
douweschulte committed Sep 27, 2024
1 parent 510fe9b commit 743061a
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions rustyms/src/modification.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ impl ModificationId {
self.id.unwrap_or_default()
)),
Ontology::Gnome => Some(format!(
"https://gnome.glyomics.org/StructureBrowser.html?focus={}",
"http://glytoucan.org/Structures/Glycans/{}",
self.name
)),
Ontology::Resid => Some(format!(
Expand Down Expand Up @@ -132,11 +132,7 @@ impl SimpleModification {
pub fn ontology_url(&self) -> Option<String> {
match self {
Self::Mass(_) | Self::Formula(_) | Self::Glycan(_) | Self::GlycanStructure(_) => None,
Self::Database { id, .. } | Self::Linker { id, .. } => id.url(),
Self::Gno { id, .. } => Some(format!(
"https://gnome.glyomics.org/StructureBrowser.html?focus={}",
id.name
)),
Self::Database { id, .. } | Self::Linker { id, .. } | Self::Gno { id, .. } => id.url(),
}
}

Expand Down

0 comments on commit 743061a

Please sign in to comment.