Skip to content
Snippets Groups Projects
Commit 7edac179 authored by Alexander Rose's avatar Alexander Rose
Browse files

fixed wrong index use when atom_site in ihm models

parent 6d077678
No related branches found
No related tags found
No related merge requests found
......@@ -347,7 +347,8 @@ async function readIHM(ctx: RuntimeContext, format: mmCIF_Format, formatData: Fo
let atom_site, atom_site_sourceIndex;
if (atom_sites.has(id)) {
const e = atom_sites.get(id)!;
const { atom_site: sorted, sourceIndex } = await sortAtomSite(ctx, e.table, e.start, e.end);
// need to sort `format.data.atom_site` as `e.start` and `e.end` are indices into that
const { atom_site: sorted, sourceIndex } = await sortAtomSite(ctx, format.data.atom_site, e.start, e.end);
atom_site = sorted;
atom_site_sourceIndex = sourceIndex;
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment