Skip to content

Removing Seq object's alphabet attribute - #3168

Merged
peterjc merged 5 commits into
biopython:masterfrom
peterjc:no_alpha_seq
Jul 29, 2020
Merged

peterjc merged 5 commits into
biopython:masterfrom
peterjc:no_alpha_seq

Conversation

@peterjc

@peterjc peterjc commented Jul 28, 2020 •

Copy link
Copy Markdown
Member

This pull request addresses issue #2046

  • 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, have run flake8 locally, and
    understand that AppVeyor and TravisCI will be used to confirm the Biopython unit
    tests and 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.)

@peterjc
peterjc requested a review from mdehoon July 28, 2020 19:13
@peterjc

This comment has been minimized.

@peterjc

peterjc commented Jul 28, 2020

Copy link
Copy Markdown
Member Author

Question: Is there any good reason to leave .alphabet present but with value None? As this stands, I have removed it.

@codecov

codecov Bot commented Jul 28, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #3168 into master will increase coverage by 1.06%.
The diff coverage is 90.90%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #3168      +/-   ##
==========================================
+ Coverage   82.77%   83.84%   +1.06%     
==========================================
  Files         318      320       +2     
  Lines       51603    51742     +139     
==========================================
+ Hits        42713    43381     +668     
+ Misses       8890     8361     -529     
Impacted Files Coverage Δ
Bio/Alphabet/Reduced.py 100.00% <ø> (ø)
Bio/Alphabet/__init__.py 71.28% <ø> (-3.08%) ⬇️
Bio/Seq.py 96.11% <90.00%> (+0.27%) ⬆️
Bio/motifs/meme.py 97.67% <100.00%> (ø)
Bio/PDB/mmtf/mmtfio.py 95.00% <0.00%> (ø)
Bio/PDB/mmtf/DefaultParser.py 100.00% <0.00%> (ø)
Bio/Phylo/BaseTree.py 89.15% <0.00%> (+0.20%) ⬆️
Bio/phenotype/phen_micro.py 86.06% <0.00%> (+2.25%) ⬆️
Bio/motifs/jaspar/db.py 8.49% <0.00%> (+5.40%) ⬆️
... and 6 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 08034ed...48afca8. Read the comment docs.

Comment thread Bio/motifs/meme.py Resolved
peterjc added 5 commits July 28, 2020 21:30
The alphabet argument is left in place (for now)
but must be None otherwise a ValueError is raised.
This is intended to faciliate updating old code,
and in particular if it must work under old and
new Biopython.
@peterjc

peterjc commented Jul 28, 2020

Copy link
Copy Markdown
Member Author

Removing the Seq object alphabet argument and attribute should be noticeable on some benchmarks...

@peterjc
peterjc merged commit 9108a5a into biopython:master Jul 29, 2020
@peterjc
peterjc deleted the no_alpha_seq branch July 29, 2020 07:55
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