Skip to content

add doc string to AlignIO, Blast and condoalign module - #1983

Merged
peterjc merged 3 commits into
biopython:masterfrom
michiboo:add_doc
Apr 23, 2019
Merged

peterjc merged 3 commits into
biopython:masterfrom
michiboo:add_doc

Conversation

@michiboo

@michiboo michiboo commented Mar 26, 2019 •

Copy link
Copy Markdown
Contributor

This pull request addresses issue #1963

  • 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.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

Sure!! You can put my name in the NEWS and CONTRIB file!

@michiboo
michiboo requested a review from peterjc as a code owner March 26, 2019 12:47
@peterjc

peterjc commented Mar 26, 2019

Copy link
Copy Markdown
Member

It would have been better to start from the current master branch, but since your work on the Align module has just been merged, it doesn't actually cause any problems.

The automated style checks are failing due to missing full stops, and worse you've accidentally made a syntax error:

$ flake8 Bio/
Bio/codonalign/codonalignment.py:103:1: D400 First line should end with a period
Bio/codonalign/codonseq.py:267:48: E999 SyntaxError: invalid syntax

Have you installed flake8 and the relevant plugins on your computer? Does this help:
https://github.com/biopython/biopython/blob/master/CONTRIBUTING.rst

Comment thread Bio/codonalign/codonalignment.py Outdated
generic_nucleotide)

def get_aln_length(self):
"""Get aligment length"""

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.

Missing full stop.

Comment thread Bio/codonalign/codonseq.py Outdated
return "".join(amino_acids)

def toSeq(self, alphabet=generic_dna):
"""Convert DNA to sequence"""

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.

Missing full stop. I would probably be clearer to say Seq object?

Comment thread Bio/codonalign/codonseq.py Outdated
rf_table=self.rf_table)

@classmethod
"""Get condon sequence from sequence data"""

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.

Missing full stop.

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.

Also this is in the wrong place (which is causing the syntax error), it should be below the def line, not above it.

@michiboo

Copy link
Copy Markdown
Contributor Author

Hi, fixed as required, sorry for the small mistake, I am new to open source!

@codecov

codecov Bot commented Mar 30, 2019

Copy link
Copy Markdown

Codecov Report

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

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1983      +/-   ##
==========================================
- Coverage   85.05%   83.74%   -1.32%     
==========================================
  Files         312      311       -1     
  Lines       50147    50082      -65     
==========================================
- Hits        42654    41940     -714     
- Misses       7493     8142     +649
Impacted Files Coverage Δ
Bio/AlignIO/EmbossIO.py 75.18% <ø> (ø) ⬆️
Bio/codonalign/codonalignment.py 86.71% <ø> (ø) ⬆️
Bio/Align/AlignInfo.py 88.88% <ø> (ø) ⬆️
Bio/Align/__init__.py 85.86% <ø> (ø) ⬆️
Bio/Blast/ParseBlastTable.py 25.6% <ø> (ø) ⬆️
Bio/codonalign/codonseq.py 87.53% <ø> (ø) ⬆️
Bio/Phylo/CDAOIO.py 5.42% <0%> (-80.1%) ⬇️
Bio/Phylo/CDAO.py 42.85% <0%> (-57.15%) ⬇️
Bio/PDB/mmtf/__init__.py 33.33% <0%> (-55.56%) ⬇️
Bio/PopGen/GenePop/EasyController.py 22.68% <0%> (-54.64%) ⬇️
... and 30 more

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 ec92c26...4fa114c. Read the comment docs.

@codecov

codecov Bot commented Mar 30, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #1983 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1983   +/-   ##
=======================================
  Coverage   85.09%   85.09%           
=======================================
  Files         314      314           
  Lines       50310    50310           
=======================================
  Hits        42810    42810           
  Misses       7500     7500
Impacted Files Coverage Δ
Bio/AlignIO/EmbossIO.py 75.75% <ø> (ø) ⬆️
Bio/codonalign/codonalignment.py 86.71% <ø> (ø) ⬆️
Bio/Blast/ParseBlastTable.py 25.6% <ø> (ø) ⬆️
Bio/codonalign/codonseq.py 87.53% <ø> (ø) ⬆️

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 793e0a6...2d0e79a. Read the comment docs.

Comment thread Bio/codonalign/codonseq.py Outdated

@classmethod
def from_seq(cls, seq, alphabet=default_codon_alphabet, rf_table=None):
"""Get condon sequence from sequence data."""

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.

Typo, condon -> codon.

@peterjc

peterjc commented Mar 30, 2019

Copy link
Copy Markdown
Member

This is looking good - just one tiny typo to fix (which I should have spotted last time), and we can apply your changes.

Do you want to add your name to the NEWS and CONTRIB file?

@michiboo

michiboo commented Apr 1, 2019

Copy link
Copy Markdown
Contributor Author

Hi, fixed as required! Sure you can add my name to the NEWS and CONTRIB file!

@peterjc

peterjc commented Apr 22, 2019

Copy link
Copy Markdown
Member

Branched rebased and updated to add name... assuming the tests still pass, this looks ready to merge.

@peterjc
peterjc merged commit c0b041a into biopython:master Apr 23, 2019
@peterjc

peterjc commented Apr 23, 2019

Copy link
Copy Markdown
Member

Merged, thank you!

peterjc added a commit to peterjc/biopython that referenced this pull request Feb 5, 2024
Original author Zheng Ruan and contributors tracked by
version control have agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Benjamin Vaisvil (@bvaisvil)
   biopython#1613
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chris Rands (@chris-rands)
   biopython#1301
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Juse (@JuseTiZ)
   biopython#4556
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - Micky Yun Chan (@michiboo)
   biopython#1983
 - @morrme
   biopython#1172 (comment)
 - Neil P. (@npars)
   biopython#3937
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sergio Valqui (@svalqui)
   biopython#1749
 - Sujan Dulal (@Dsujan)
   biopython#2430
 - Travis Wrightsman (@twrightsman)
   biopython#898 (comment)
 - Zheng Ruan (@zruan)
   biopython#898 (comment)
peterjc added a commit to peterjc/biopython that referenced this pull request Feb 5, 2024
Original author Zheng Ruan and contributors since tracked by
version control have agreed:

 - Adhemar Zerlotini (@azneto)
   biopython#1412 (comment)
 - Alex Jironkin (@alexjironkin)
   PENDING VIA biopython#765
 - Benjamin Vaisvil (@bvaisvil)
   biopython#1613
 - Carlos Pena (@carlosp420)
   biopython#898 (comment)
 - Chris Rands (@chris-rands)
   biopython#1301
 - Christian Brueffer (@cbrueffer)
   biopython#898 (comment)
 - Eric Talevich (@etal)
   biopython#898 (comment)
 - Michiel de Hoon (@mdehoon)
   biopython#898 (comment)
 - Micky Yun Chan (@michiboo)
   biopython#1983
 - @morrme
   biopython#1172 (comment)
 - Nick Negretti (@nimne)
   biopython#1768 (comment)
 - Peter Cock (@peterjc)
   biopython#898 (comment)
 - Sujan Dulal (@Dsujan)
   biopython#2430
 - Travis Wrightsman (@twrightsman)
   biopython#898 (comment)
 - Zheng Ruan (@zruan)
   biopython#898 (comment)
peterjc added a commit that referenced this pull request Feb 5, 2024
Original author Zheng Ruan and contributors tracked by
version control have agreed:

 - Adhemar Zerlotini (@azneto)
   #1412 (comment)
 - Benjamin Vaisvil (@bvaisvil)
   #1613
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chris Rands (@chris-rands)
   #1301
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Juse (@JuseTiZ)
   #4556
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - Micky Yun Chan (@michiboo)
   #1983
 - @morrme
   #1172 (comment)
 - Neil P. (@npars)
   #3937
 - Peter Cock (@peterjc)
   #898 (comment)
 - Sergio Valqui (@svalqui)
   #1749
 - Sujan Dulal (@Dsujan)
   #2430
 - Travis Wrightsman (@twrightsman)
   #898 (comment)
 - Zheng Ruan (@zruan)
   #898 (comment)
peterjc added a commit that referenced this pull request Feb 5, 2024
Original author Zheng Ruan and contributors since tracked by
version control have agreed:

 - Adhemar Zerlotini (@azneto)
   #1412 (comment)
 - Alex Jironkin (@alexjironkin)
   PENDING VIA #765
 - Benjamin Vaisvil (@bvaisvil)
   #1613
 - Carlos Pena (@carlosp420)
   #898 (comment)
 - Chris Rands (@chris-rands)
   #1301
 - Christian Brueffer (@cbrueffer)
   #898 (comment)
 - Eric Talevich (@etal)
   #898 (comment)
 - Michiel de Hoon (@mdehoon)
   #898 (comment)
 - Micky Yun Chan (@michiboo)
   #1983
 - @morrme
   #1172 (comment)
 - Nick Negretti (@nimne)
   #1768 (comment)
 - Peter Cock (@peterjc)
   #898 (comment)
 - Sujan Dulal (@Dsujan)
   #2430
 - Travis Wrightsman (@twrightsman)
   #898 (comment)
 - Zheng Ruan (@zruan)
   #898 (comment)
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