Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write per-virus per-sample fasta in proteins-to-viruses.py #471

Merged
merged 6 commits into from Dec 2, 2016

Conversation

terrycojones
Copy link
Member

Fixes #465.

Maintain a cache of virus/sample FASTA file names, creating the FASTA
on demand.
"""
def __init__(self, proteinGrouper):
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't have an explanation for proteinGrouper.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@@ -286,7 +336,7 @@ def toHTML(self):

# Write all samples (with viruses (with proteins)).
append('<h1>Samples by virus</h1>')
for sampleName in sorted(sampleNames):
for sampleName in sampleNames:

Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need the newline.

Copy link
Member Author

Choose a reason for hiding this comment

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

OK.

@@ -264,8 +271,9 @@ def testOneLineInEachOfTwoFilesSameVirusTitle(self):

def testOneLineInEachOfTwoFilesDifferentViruses(self):
"""
If a protein grouper is given two files, each with one line from the
different viruses, its virusTitles dict must be as expected.
If a protein grouper is given two files intwo different directories,
Copy link
Contributor

Choose a reason for hiding this comment

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

s/intwo/in two

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

@bamueh
Copy link
Contributor

bamueh commented Dec 2, 2016

OK, just the trivial comments.

@terrycojones terrycojones merged commit b2e4789 into acorg:master Dec 2, 2016
@terrycojones terrycojones deleted the write-viral-fasta-465 branch December 2, 2016 10:38
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.

None yet

2 participants