Skip to content

Commit

Permalink
one more hack to get AF3 structures to load into NGL
Browse files Browse the repository at this point in the history
  • Loading branch information
milot-mirdita committed May 16, 2024
1 parent d06fa4a commit 8e78f7c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/StructureViewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,8 @@ END
queryPdb = queryPdb.trimStart();
if (queryPdb[0] == "#" || queryPdb.startsWith("data_")) {
ext = 'cif';
// NGL doesn't like AF3's _chem_comp entries
queryPdb = queryPdb.replaceAll("_chem_comp.", "_chem_comp_SKIP_HACK.");
} else {
for (let line of queryPdb.split('\n')) {
let numCols = Math.max(0, 80 - line.length);
Expand Down

0 comments on commit 8e78f7c

Please sign in to comment.