|
@@ -2,6 +2,7 @@
|
|
|
* Copyright (c) 2021-2023 mol* contributors, licensed under MIT, See LICENSE file for more info.
|
|
|
*
|
|
|
* @author Alexander Rose <alexander.rose@weirdbyte.de>
|
|
|
+ * @author Yakov Pechersky <ffxen158@gmail.com>
|
|
|
*/
|
|
|
|
|
|
import { CifCategory, CifField } from '../../../mol-io/reader/cif';
|
|
@@ -20,12 +21,14 @@ export function parseConect(lines: Tokens, lineStart: number, lineEnd: number, s
|
|
|
const conn_type_id: string[] = [];
|
|
|
|
|
|
const ptnr1_label_asym_id: string[] = [];
|
|
|
+ const ptnr1_label_seq_id: number[] = [];
|
|
|
const ptnr1_auth_seq_id: number[] = [];
|
|
|
const ptnr1_label_atom_id: string[] = [];
|
|
|
const ptnr1_label_alt_id: string[] = [];
|
|
|
const ptnr1_PDB_ins_code: string[] = [];
|
|
|
|
|
|
const ptnr2_label_asym_id: string[] = [];
|
|
|
+ const ptnr2_label_seq_id: number[] = [];
|
|
|
const ptnr2_auth_seq_id: number[] = [];
|
|
|
const ptnr2_label_atom_id: string[] = [];
|
|
|
const ptnr2_label_alt_id: string[] = [];
|
|
@@ -59,12 +62,14 @@ export function parseConect(lines: Tokens, lineStart: number, lineEnd: number, s
|
|
|
conn_type_id.push('covale');
|
|
|
|
|
|
ptnr1_label_asym_id.push(sites.label_asym_id!.str(idxA));
|
|
|
+ ptnr1_label_seq_id.push(sites.label_seq_id!.int(idxA));
|
|
|
ptnr1_auth_seq_id.push(sites.auth_seq_id!.int(idxA));
|
|
|
ptnr1_label_atom_id.push(sites.label_atom_id!.str(idxA));
|
|
|
ptnr1_label_alt_id.push(sites.label_alt_id!.str(idxA));
|
|
|
ptnr1_PDB_ins_code.push(sites.pdbx_PDB_ins_code!.str(idxA));
|
|
|
|
|
|
ptnr2_label_asym_id.push(sites.label_asym_id!.str(idxB));
|
|
|
+ ptnr2_label_seq_id.push(sites.label_seq_id!.int(idxB));
|
|
|
ptnr2_auth_seq_id.push(sites.auth_seq_id!.int(idxB));
|
|
|
ptnr2_label_atom_id.push(sites.label_atom_id!.str(idxB));
|
|
|
ptnr2_label_alt_id.push(sites.label_alt_id!.str(idxB));
|
|
@@ -79,12 +84,14 @@ export function parseConect(lines: Tokens, lineStart: number, lineEnd: number, s
|
|
|
conn_type_id: CifField.ofStrings(conn_type_id),
|
|
|
|
|
|
ptnr1_label_asym_id: CifField.ofStrings(ptnr1_label_asym_id),
|
|
|
+ ptnr1_label_seq_id: CifField.ofNumbers(ptnr1_label_seq_id),
|
|
|
ptnr1_auth_seq_id: CifField.ofNumbers(ptnr1_auth_seq_id),
|
|
|
ptnr1_label_atom_id: CifField.ofStrings(ptnr1_label_atom_id),
|
|
|
pdbx_ptnr1_label_alt_id: CifField.ofStrings(ptnr1_label_alt_id),
|
|
|
pdbx_ptnr1_PDB_ins_code: CifField.ofStrings(ptnr1_PDB_ins_code),
|
|
|
|
|
|
ptnr2_label_asym_id: CifField.ofStrings(ptnr2_label_asym_id),
|
|
|
+ ptnr2_label_seq_id: CifField.ofNumbers(ptnr2_label_seq_id),
|
|
|
ptnr2_auth_seq_id: CifField.ofNumbers(ptnr2_auth_seq_id),
|
|
|
ptnr2_label_atom_id: CifField.ofStrings(ptnr2_label_atom_id),
|
|
|
pdbx_ptnr2_label_alt_id: CifField.ofStrings(ptnr2_label_alt_id),
|