Skip to content

Show failing sequence ID in PhylipWriter - #4

Closed
cmccoy wants to merge 1 commit into
biopython:masterfrom
cmccoy:phylip-notify
Closed

cmccoy wants to merge 1 commit into
biopython:masterfrom
cmccoy:phylip-notify

Conversation

@cmccoy

@cmccoy cmccoy commented May 7, 2011

Copy link
Copy Markdown
Contributor
  • ValueError raised on duplicate sequence ID in PhylipWriter now identifies the (possibly truncated) problematic sequence ID
  • Added a simple test - not quite sure how to integrate with BioPython test suite - let me know if that should be changed.

* ValueError raised on duplicate sequence ID in PhylipWriter now
  identifies the (possibly truncated) problematic sequence ID
* Added a simple test.
@peterjc

peterjc commented May 8, 2011

Copy link
Copy Markdown
Member

Hi Conner,

I did wonder about making this error message more helpful at the time, but went for the easy option.

I have cherry-picked your commit:
45eb4bf

I also made a subsequent change - while reviewing your change, I noticed and fixed an old bug in this area:
0651c70

For future reference, try and run the full test suite - especially for SeqIO/AlignIO changes since these are interlinked:
ed40a87
a641816

Thanks,

Peter

@peterjc peterjc closed this May 8, 2011
@cmccoy

cmccoy commented May 9, 2011

Copy link
Copy Markdown
Contributor Author

Hi Peter,

Thanks; sorry for the test oversight. I'll run the whole suite next time.

Best,
Connor

@peterjc

peterjc commented May 9, 2011

Copy link
Copy Markdown
Member

Comment thread Tests/test_AlignIO.py

#Check Phylip files reject duplicate identifiers.
def check_phylip_reject_duplicate():
"""

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you follow PEP257 with a single (short) one line summary for the docstring?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Never mind, I clicked on a wrong link and though this was a live pull request. Sorry.

manulera pushed a commit to manulera/biopython that referenced this pull request Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants