From 8bd407a7ffc4c44be343953887899887ce3b84c1 Mon Sep 17 00:00:00 2001 From: Alexander Rose <alexander.rose@weirdbyte.de> Date: Tue, 5 Jun 2018 17:28:20 +0200 Subject: [PATCH] sequence todos --- src/mol-model/structure/model/properties/sequence.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/mol-model/structure/model/properties/sequence.ts b/src/mol-model/structure/model/properties/sequence.ts index 229c5509b..fa3512028 100644 --- a/src/mol-model/structure/model/properties/sequence.ts +++ b/src/mol-model/structure/model/properties/sequence.ts @@ -12,6 +12,10 @@ interface Sequence { readonly byEntityKey: { [key: number]: Sequence.Entity } } +// TODO lift to model/sequence/ folder +// TODO add one letter code sequence string +// TODO add mapping support to other sequence spaces, e.g. uniprot + namespace Sequence { export interface Entity { readonly entityId: string, @@ -27,6 +31,9 @@ namespace Sequence { const byEntityKey: Sequence['byEntityKey'] = {}; + // TODO get min/max of label_seq_id to handle missing residues at start and in between + // note that this assumes label_seq_id is monotonically increasing + const chainCount = hierarchy.chains._rowCount for (let i = 0; i < chainCount; ++i) { const entityId = label_entity_id.value(i) -- GitLab