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

fix sequence creation from hierarchy

parent 31e2cc5f
No related branches found
No related tags found
No related merge requests found
...@@ -69,11 +69,10 @@ namespace StructureSequence { ...@@ -69,11 +69,10 @@ namespace StructureSequence {
cI--; cI--;
const rStart = residueAtomSegments.index[offsets[start]]; const rStart = residueAtomSegments.index[offsets[start]];
const rEnd = residueAtomSegments.index[offsets[cI + 1]]; const rEnd = residueAtomSegments.index[offsets[cI + 1] - 1] + 1;
const compId = Column.window(label_comp_id, rStart, rEnd); const compId = Column.window(label_comp_id, rStart, rEnd);
const num = Column.window(label_seq_id, rStart, rEnd); const num = Column.window(label_seq_id, rStart, rEnd);
byEntityKey[entityKey] = { byEntityKey[entityKey] = {
entityId: entities.data.id.value(entityKey), entityId: entities.data.id.value(entityKey),
sequence: Sequence.ofResidueNames(compId, num, modResMap) sequence: Sequence.ofResidueNames(compId, num, modResMap)
...@@ -115,7 +114,7 @@ namespace StructureSequence { ...@@ -115,7 +114,7 @@ namespace StructureSequence {
cI--; cI--;
const eStart = offsets[start]; const eStart = offsets[start];
const eEnd = offsets[cI + 1]; const eEnd = offsets[cI + 1] - 1;
const seqIdBegin = Column.window(seq_id_begin, eStart, eEnd); const seqIdBegin = Column.window(seq_id_begin, eStart, eEnd);
const seqIdEnd = Column.window(seq_id_end, eStart, eEnd); const seqIdEnd = Column.window(seq_id_end, eStart, eEnd);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment