Skip to content

Commit

Permalink
Link BFVD
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Nov 17, 2024
1 parent b1cbd08 commit 21ecbe4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions frontend/Utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ function tryLinkTargetToDB(target, db) {
} else {
return "https://www.cathdb.info/version/latest/domain/"+ target;
}
} else if (res.startsWith("bfvd")) {
const bfvd = target.replaceAll(/_.*/g, '');
return [
{ label: "BFVD", accession: bfvd, href: "https://bfvd.foldseek.com/cluster/" + bfvd },
{ label: "UniRef", accession: bfvd, href: "https://www.uniprot.org/uniref/UniRef100_" + bfvd },
]
}
}
return null;
Expand All @@ -72,6 +78,8 @@ function tryFixTargetName(target, db) {
return target.replaceAll(/\.(cif|pdb)(\.gz)?(_[A-Z0-9]+)?$/g, '');
} else if (res.startsWith("pdb") || res.startsWith("gmgc") || res.startsWith("mgyp") || res.startsWith("mgnify")) {
return target.replaceAll(/\.(cif|pdb)(\.gz)?/g, '');
} else if (res.startsWith("bfvd")) {
return target.replaceAll(/_unrelaxed.*/g, '');
}
if (res.startsWith("cath")) {
if (target.startsWith('af_')) {
Expand Down

0 comments on commit 21ecbe4

Please sign in to comment.