Compare commits

..

1 Commits

Author SHA1 Message Date
Peter Schmidtke
1e861b184b Merge pull request #132 from Discngine/issue-129
issue-129 adding insertion codes and splitting auth chain & residue n…
2024-02-16 20:46:16 +01:00
2 changed files with 6 additions and 22 deletions

View File

@@ -1161,9 +1161,6 @@ void rpdb_read(s_pdb *pdb, const char *ligan, const int keep_lig, int model_numb
atom->radius = pte_get_vdw_ray(atom->symbol);
atom->electroneg = pte_get_enegativity(atom->symbol);
atom->sort_x = -1;
atom->label_seq_id=atom->res_id;
strcpy(atom->label_asym_id, atom->chain);
atoms_p[iatoms] = atom;
iatoms++;
@@ -1192,9 +1189,7 @@ void rpdb_read(s_pdb *pdb, const char *ligan, const int keep_lig, int model_numb
atom->radius = pte_get_vdw_ray(atom->symbol);
atom->electroneg = pte_get_enegativity(atom->symbol);
atom->sort_x = -1;
atom->label_seq_id=atom->res_id;
strcpy(atom->label_asym_id, atom->chain);
atoms_p[iatoms] = atom;
iatoms++;
@@ -1220,9 +1215,6 @@ void rpdb_read(s_pdb *pdb, const char *ligan, const int keep_lig, int model_numb
atom->radius = pte_get_vdw_ray(atom->symbol);
atom->electroneg = pte_get_enegativity(atom->symbol);
atom->sort_x = -1;
atom->label_seq_id=atom->res_id;
strcpy(atom->label_asym_id, atom->chain);
// printf("type : %s, id : %d, name : %s, aloc : %c, res_name : %s, chain : %s, res_id : %d, pdb_insert : %c, occupancy : %f, b_factor : %f, symbol : %s, charge : %d\n",
// atom->type, atom->id,atom->name ,atom->pdb_aloc,atom->res_name,atom->chain,atom->res_id,atom->pdb_insert,atom->occupancy,atom->bfactor, atom->symbol,atom->charge);
// printf("electroneg : %s\n",atom->symbol);
@@ -1292,9 +1284,7 @@ void rpdb_read(s_pdb *pdb, const char *ligan, const int keep_lig, int model_numb
atom->radius = pte_get_vdw_ray(atom->symbol);
atom->electroneg = pte_get_enegativity(atom->symbol);
atom->sort_x = -1;
atom->label_seq_id=atom->res_id;
strcpy(atom->label_asym_id, atom->chain);
atoms_p[iatoms] = atom;
atm_lig[iatm_lig] = atom;
@@ -1320,9 +1310,7 @@ void rpdb_read(s_pdb *pdb, const char *ligan, const int keep_lig, int model_numb
atom->radius = pte_get_vdw_ray(atom->symbol);
atom->electroneg = pte_get_enegativity(atom->symbol);
atom->sort_x = -1;
atom->label_seq_id=atom->res_id;
strcpy(atom->label_asym_id, atom->chain);
atoms_p[iatoms] = atom;
atm_lig[iatm_lig] = atom;
@@ -1350,9 +1338,7 @@ void rpdb_read(s_pdb *pdb, const char *ligan, const int keep_lig, int model_numb
atom->radius = pte_get_vdw_ray(atom->symbol);
atom->electroneg = pte_get_enegativity(atom->symbol);
atom->sort_x = -1;
atom->label_seq_id=atom->res_id;
strcpy(atom->label_asym_id, atom->chain);
atoms_p[iatoms] = atom;
pdb->lhetatm[ihetatm] = atom;
ihetatm++;
@@ -1380,9 +1366,7 @@ void rpdb_read(s_pdb *pdb, const char *ligan, const int keep_lig, int model_numb
atom->radius = pte_get_vdw_ray(atom->symbol);
atom->electroneg = pte_get_enegativity(atom->symbol);
atom->sort_x = -1;
atom->label_seq_id=atom->res_id;
strcpy(atom->label_asym_id, atom->chain);
atoms_p[iatoms] = atom;
pdb->lhetatm[ihetatm] = atom;
ihetatm++;

View File

@@ -227,7 +227,7 @@ void write_mmcif_atom_line(FILE *f, const char rec_name[], int id, const char at
sprintf(res_id_buf, "****");
alt_loc = (alt_loc == '\0' || (alt_loc == ' ')) ? '?' : alt_loc;
insert = (insert == '\0' || insert==' ') ? '?' : insert;
insert = (insert == '\0') ? '?' : insert;
if (charge == -1)
sprintf(charge_buf, " 0");