Skip to content

Commit

Permalink
Use PDBe by default when opening PDB codes
Browse files Browse the repository at this point in the history
Previously, the default was to use mmtf format server by RCSB. This format was containing the full connectivity, which is currently missing from bcif files distributed by RCSB.
PDBe distributes "Updated" mmcif files, containing this data. The same content is available in their bcif files.
  • Loading branch information
papillot committed Apr 27, 2024
1 parent 75b49c2 commit a654d01
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/js/gui.js
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,9 @@ NGL.MenubarFileWidget = function (stage) {

function onPdbInputKeyDown (e) {
if (e.keyCode === 13) {
stage.loadFile('rcsb://' + e.target.value.trim(), {
const val = e.target.value.trim()
const protocol = val.startsWith('AF_') ? 'rcsb://' : 'pdbe://'
stage.loadFile(protocol + val, {
defaultRepresentation: true
})
e.target.value = ''
Expand Down

0 comments on commit a654d01

Please sign in to comment.