Skip to content

Commit

Permalink
Remove -assemblyN substring when linking to rcsb
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed Apr 14, 2024
1 parent 9a697c4 commit c1ecfd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/Utilities.js
Expand Up @@ -5,7 +5,7 @@ function tryLinkTargetToDB(target, db) {
if (res.startsWith("pfam")) {
return 'https://www.ebi.ac.uk/interpro/entry/pfam/' + target;
} else if (res.startsWith("pdb")) {
return 'https://www.rcsb.org/pdb/explore.do?structureId=' + target.replaceAll(/\.(cif|pdb)(\.gz)?/g, '').split('_')[0];
return 'https://www.rcsb.org/pdb/explore.do?structureId=' + target.replaceAll(/-assembly[0-9]+/g, '').replaceAll(/\.(cif|pdb)(\.gz)?/g, '').split('_')[0];
} else if (res.startsWith("uniclust") || res.startsWith("uniprot") || res.startsWith("sprot") || res.startsWith("swissprot")) {
return 'https://www.uniprot.org/uniprot/' + target;
} else if (res.startsWith("eggnog_")) {
Expand Down

0 comments on commit c1ecfd8

Please sign in to comment.