Skip to content

Commit

Permalink
Merge pull request #126 from Discngine/fixmmcifwriting
Browse files Browse the repository at this point in the history
Fixmmcifwriting
  • Loading branch information
pschmidtke authored Jan 11, 2024
2 parents 96a6ed3 + 11cff11 commit 9ff11f6
Show file tree
Hide file tree
Showing 484 changed files with 23,083 additions and 9,121 deletions.
13,962 changes: 13,962 additions & 0 deletions data/sample/7z9t.cif

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions src/read_mmcif.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ void read_mmcif(s_pdb *pdb, const char *ligan, const int keep_lig, int model_num
strcpy(atom->name, at_in[i].type);
atom->pdb_aloc = at_in[i].altloc[0];
strcpy(atom->res_name, at_in[i].resname);
strncpy(atom->chain, at_in[i].chain, 2);
strcpy(atom->chain, at_in[i].chain_auth);
atom->res_id = at_in[i].resid;
atom->pdb_insert = at_in[i].insertion[0];
atom->x = ts_in.coords[(3 * i)];
Expand Down Expand Up @@ -350,7 +350,7 @@ void read_mmcif(s_pdb *pdb, const char *ligan, const int keep_lig, int model_num
strcpy(atom->name, at_in[i].type);
atom->pdb_aloc = at_in[i].altloc[0];
strcpy(atom->res_name, at_in[i].resname);
strncpy(atom->chain, at_in[i].chain, 2);
strcpy(atom->chain, at_in[i].chain_auth);
atom->res_id = at_in[i].resid;
atom->pdb_insert = at_in[i].insertion[0];
atom->x = ts_in.coords[(3 * i)];
Expand Down Expand Up @@ -395,7 +395,7 @@ void read_mmcif(s_pdb *pdb, const char *ligan, const int keep_lig, int model_num
atom->pdb_aloc = at_in[i].altloc[0];
strcpy(atom->res_name, at_in[i].resname);

strncpy(atom->chain, at_in[i].chain, 2);
strcpy(atom->chain, at_in[i].chain_auth);
atom->res_id = at_in[i].resid;
atom->pdb_insert = at_in[i].insertion[0];

Expand Down Expand Up @@ -465,7 +465,7 @@ void read_mmcif(s_pdb *pdb, const char *ligan, const int keep_lig, int model_num
strcpy(atom->name, at_in[i].type);
atom->pdb_aloc = at_in[i].altloc[0];
strcpy(atom->res_name, at_in[i].resname);
strncpy(atom->chain, at_in[i].chain, 2);
strcpy(atom->chain, at_in[i].chain_auth);
atom->res_id = at_in[i].resid;
atom->pdb_insert = at_in[i].insertion[0];
atom->x = ts_in.coords[(3 * i)];
Expand Down Expand Up @@ -502,7 +502,7 @@ void read_mmcif(s_pdb *pdb, const char *ligan, const int keep_lig, int model_num
strcpy(atom->name, at_in[i].type);
atom->pdb_aloc = at_in[i].altloc[0];
strcpy(atom->res_name, at_in[i].resname);
strncpy(atom->chain, at_in[i].chain, 2);
strcpy(atom->chain, at_in[i].chain_auth);
atom->res_id = at_in[i].resid;
atom->pdb_insert = at_in[i].insertion[0];
atom->x = ts_in.coords[(3 * i)];
Expand Down Expand Up @@ -540,7 +540,7 @@ void read_mmcif(s_pdb *pdb, const char *ligan, const int keep_lig, int model_num
strcpy(atom->name, at_in[i].type);
atom->pdb_aloc = at_in[i].altloc[0];
strcpy(atom->res_name, at_in[i].resname);
strncpy(atom->chain, at_in[i].chain, 2);
strcpy(atom->chain, at_in[i].chain_auth);
atom->res_id = at_in[i].resid;
atom->pdb_insert = at_in[i].insertion[0];
atom->x = ts_in.coords[(3 * i)];
Expand Down Expand Up @@ -578,7 +578,7 @@ void read_mmcif(s_pdb *pdb, const char *ligan, const int keep_lig, int model_num
strcpy(atom->name, at_in[i].type);
atom->pdb_aloc = at_in[i].altloc[0];
strcpy(atom->res_name, at_in[i].resname);
strncpy(atom->chain, at_in[i].chain, 2);
strcpy(atom->chain, at_in[i].chain_auth);
atom->res_id = at_in[i].resid;
atom->pdb_insert = at_in[i].insertion[0];
atom->x = ts_in.coords[(3 * i)];
Expand Down
Loading

0 comments on commit 9ff11f6

Please sign in to comment.