|
@@ -12,6 +12,12 @@ 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
|
|
|
+// TODO add sequence kind, e.g. protein, dna, rna (alphabets?)
|
|
|
+// TODO sequence alignment (take NGL code as starting point)
|
|
|
+
|
|
|
namespace Sequence {
|
|
|
export interface Entity {
|
|
|
readonly entityId: string,
|
|
@@ -27,6 +33,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)
|