Repository navigation
Fixing a bug in SeqIO.PdbIO in parsing pdb-atom sequence - #196
matsu3shiro wants to merge 1 commit into
Conversation
Fixing a problem that SeqIO.PdbIO outputs erroneous amino acid sequence if the ATOM record has more than one missing segments.
|
Thanks for spotting this. Can you suggest a PDB ID we can use for testing? E.g. does this problem occur on 4AZS? |
|
Dear Eric, Thank you for your reply. I also add some test code in Tests/test_SeqIO_PdbIO.py Regards, Matsuyuki Shirota (2013/07/04 12:21), Eric Talevich wrote:
|
|
@etal Are you happy with this pull request (which includes tests)? |
|
Yep, looks good to me. I'll apply it. |
|
@matsu3shiro Could you comment on issue #898 if you agree to dual license your Biopython contributions under both the "Biopython License Agreement" and the "BSD 3-Clause License". Many thanks, Peter. |
This reverts commit 4b3c659. Have not yet confirmed Matsuyuki Shirota (@matsu3shiro) agrees to the dual licensing change for his contribution which was made on pull request #196.
|
Hello again @matsu3shiro - sorry to bother you, but we would still like your agreement to dual license your contribution 5303fbd to Biopython under both the "Biopython License Agreement" and the "BSD 3-Clause License". Many thanks, Peter. |
Fixing a problem that SeqIO.PdbIO outputs erroneous amino acid sequence
if the ATOM record has more than one missing segments.
SeqIO.PdbIO includes a bug in parsing amino acid sequences
from PDB ATOM records (pdb-atom).
It outputs erroneous amino acid sequence
if the ATOM record has more than one missing segments.
The original code trys to insert 'X's for each gap position,
but it adds the C-terminal sequence from the gap
each time it fills a gap in addition to the 'X's.
In contrast, the insertion of C-terminal sequence is only required
at the final gap position.
Thus, this code outputs an amino acid sequence
in which C-terminal sequence is erroneously repeated
if the coordinate file includes more than one gap positions.
I fixed this bug by moving lines 173-174 out of the FOR loop
starting from line 166.