Skip to content

Add discoMegablast keywords to qblast + test - #1470

Merged
peterjc merged 3 commits into
biopython:masterfrom
mxposed:master
Dec 13, 2017
Merged

peterjc merged 3 commits into
biopython:masterfrom
mxposed:master

Conversation

@mxposed

@mxposed mxposed commented Dec 7, 2017 •

Copy link
Copy Markdown
Contributor

I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.

I have read the CONTRIBUTING.rst file and understand that AppVeyor and
TravisCI will be used to confirm the Biopython unit tests and flake8 style
checks pass with these changes.

@codecov

codecov Bot commented Dec 7, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #1470 into master will decrease coverage by 0.01%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1470      +/-   ##
==========================================
- Coverage    84.8%   84.78%   -0.02%     
==========================================
  Files         321      321              
  Lines       49312    49323      +11     
==========================================
+ Hits        41817    41819       +2     
- Misses       7495     7504       +9
Impacted Files Coverage Δ
Bio/Blast/NCBIWWW.py 12.04% <ø> (ø) ⬆️
Bio/PDB/PDBList.py 16.66% <0%> (-0.79%) ⬇️
Bio/SeqRecord.py 93.62% <0%> (-0.71%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f2a8dab...91790fa. Read the comment docs.

Comment thread Tests/test_NCBI_qblast.py
megablast='on',
), ['XM_635681.1', 'XM_008496783.1'])

def run_qblast(self, program, database, query, e_value, entrez_filter, additional_args, expected_hits):

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.

You've inserted additional_args into the argument list, rather than adding it to the end. If this was a public API, that would be bad. As this is internal to the test script only, it should be fine.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I wanted to keep expected_hits the last parameter for semantic reasons. I can change this so additional_args would be an optional keyword argument.

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.

OK, yes - that is a good enough reason.

Comment thread Tests/test_NCBI_qblast.py Outdated
# the actin related protein 2/3 complex, subunit 1B [Mus musculus]
self.run_qblast("blastp", "nr", "NP_075631.2", 0.001,
"rat [ORGN]", ['9506405', '13592137', '37589612', '149064087', '56912225'])
"rat [ORGN]", dict(megablast='FALSE'), ['9506405', '13592137', '37589612', '149064087', '56912225'])

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.

Style wise, avoid the very long line by using more line breaks.

Also why not write {'megablast': 'FALSE'} here (and likewise later on)?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No special reason. I'll change it to {'megablast': 'FALSE'} then

@peterjc

peterjc commented Dec 11, 2017

Copy link
Copy Markdown
Member

I've noted some minor style things. @bow is this something you could review please?

@bow

bow commented Dec 12, 2017

Copy link
Copy Markdown
Member

@peterjc Aside from the current comments, the rest seems fine ~.

@mxposed

mxposed commented Dec 12, 2017

Copy link
Copy Markdown
Contributor Author

Changed the dict syntax

@peterjc

peterjc commented Dec 13, 2017

Copy link
Copy Markdown
Member

@mxposed Do you want to be listed and thanked by name in the NEWS.rst and CONTRIB.rst files?

@mxposed

mxposed commented Dec 13, 2017

Copy link
Copy Markdown
Contributor Author

@peterjc I'll skip for now, thank you)

@peterjc

peterjc commented Dec 13, 2017

Copy link
Copy Markdown
Member

@mxposed OK, that's fine.

@peterjc
peterjc merged commit 45ce6b6 into biopython:master Dec 13, 2017
@peterjc

peterjc commented Dec 13, 2017

Copy link
Copy Markdown
Member

Merged, thank you for your contribution.

peterjc added a commit to peterjc/biopython that referenced this pull request Jun 5, 2019
Closes issue biopython#1879, part of biopython#898. The original author Jeff Chang
and contributors since as recorded in version control have agreed:

 - Fábio Madeira (@biomadeira)
   biopython#898 (comment)
 - Benjamin Vaisvil (@bvaisvil)
   biopython#1613
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chang Soon Ong (@chengsoonong)
   biopython#1879 (comment)
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Brad Chapman (@chapmanb)
   http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html
 - Christiam Camacho (@christiam)
   biopython#898 (comment)
 - Christopher Jenness (@christopherjenness)
   biopython#1535
 - Iddo Friedberg (@idoerg)
   biopython#898 (comment)
 - Jeff Chang (@jefftc)
   biopython#898 (comment)
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - Jay Bird (@mxposed)
   biopython#1470 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Nick Semenkovich (@semenko)
   biopython#898 (comment)
 - Sjoerd de Vries
   biopython#1879 (comment)
 - Soroush Saffari (@sorsaffari)
   biopython#1819
 - Suresh Panneerselvam (@Amrithasuresh)
   biopython#1575
 - Vincent Davis (@vincentdavis)
   biopython#898 (comment)

The one exception is Chris Wroe, who we have not been able to contact,
but their small contribution from Feb 2004 was later deprecated and
removed in 2007.
@peterjc peterjc mentioned this pull request Jun 5, 2019
3 tasks done
peterjc added a commit that referenced this pull request Jun 5, 2019
Closes issue #1879, part of #898. The original author Jeff Chang
and contributors since as recorded in version control have agreed:

 - Fábio Madeira (@biomadeira)
   #898 (comment)
 - Benjamin Vaisvil (@bvaisvil)
   #1613
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chang Soon Ong (@chengsoonong)
   #1879 (comment)
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Brad Chapman (@chapmanb)
   http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html
 - Christiam Camacho (@christiam)
   #898 (comment)
 - Christopher Jenness (@christopherjenness)
   #1535
 - Iddo Friedberg (@idoerg)
   #898 (comment)
 - Jeff Chang (@jefftc)
   #898 (comment)
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - Jay Bird (@mxposed)
   #1470 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Nick Semenkovich (@semenko)
   #898 (comment)
 - Sjoerd de Vries
   #1879 (comment)
 - Soroush Saffari (@sorsaffari)
   #1819
 - Suresh Panneerselvam (@Amrithasuresh)
   #1575
 - Vincent Davis (@vincentdavis)
   #898 (comment)

The one exception is Chris Wroe, who we have not been able to contact,
but their small contribution from Feb 2004 was later deprecated and
removed in 2007.
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.

3 participants