Skip to content

Hide alphabet in Seq objects' __repr__ [WIP; discussion only] - #1676

Closed
peterjc wants to merge 4 commits into
biopython:masterfrom
peterjc:hide_alphabet
Closed

peterjc wants to merge 4 commits into
biopython:masterfrom
peterjc:hide_alphabet

Conversation

@peterjc

@peterjc peterjc commented Jun 4, 2018

Copy link
Copy Markdown
Member

This pull request addresses issue #1674.

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

@peterjc
peterjc requested a review from mdehoon June 4, 2018 13:24
@peterjc peterjc mentioned this pull request Jun 4, 2018
@codecov

codecov Bot commented Jun 4, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #1676 into master will increase coverage by 0.1%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #1676     +/-   ##
=========================================
+ Coverage   85.41%   85.51%   +0.1%     
=========================================
  Files         301      327     +26     
  Lines       49266    49819    +553     
=========================================
+ Hits        42079    42604    +525     
- Misses       7187     7215     +28
Impacted Files Coverage Δ
Bio/motifs/__init__.py 80.15% <ø> (ø) ⬆️
Bio/SeqIO/QualityIO.py 72.01% <ø> (ø) ⬆️
Bio/SeqFeature.py 86.06% <ø> (+0.23%) ⬆️
Bio/SearchIO/_model/hsp.py 92.32% <ø> (ø) ⬆️
Bio/SeqRecord.py 93.7% <ø> (ø) ⬆️
Bio/Alphabet/Reduced.py 100% <ø> (ø) ⬆️
Bio/Seq.py 98.09% <100%> (-0.14%) ⬇️
Bio/Pathway/Rep/Graph.py 74.68% <0%> (-15.19%) ⬇️
Bio/PDB/MMCIFParser.py 81.65% <0%> (-8.64%) ⬇️
Bio/Pathway/Rep/MultiGraph.py 55.96% <0%> (-6.43%) ⬇️
... and 114 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 c04ecd8...8537d90. Read the comment docs.

@peterjc

peterjc commented Jun 5, 2018

Copy link
Copy Markdown
Member Author

Big update to always hide the alphabet (first commit hides only the default alphabet and was the original contents of this pull request).

@peterjc

peterjc commented Jun 5, 2018

Copy link
Copy Markdown
Member Author

TODO: DBSeq in the BioSQL code

@mdehoon

mdehoon commented Jun 6, 2018

Copy link
Copy Markdown
Contributor

Looks good. I would suggest to remove alphabets also from Doc/Tutorial/chapter_quick_start.tex, and there are a few remaining cases in Doc/Tutorial/chapter_seq_annot.tex and biopython/Doc/Tutorial/chapter_seqio.tex.

@peterjc peterjc changed the title Hide default alphabet in Seq objects' __repr__ Hide alphabet in Seq objects' __repr__ Jun 14, 2018
@peterjc

peterjc commented Jun 14, 2018

Copy link
Copy Markdown
Member Author

Given comments from @MarkusPiotrowski on #1674, I'm proposing for Biopython 1.72 to only apply the first commit here - just hide the alphabet in the Seq objects' __repr__ when the default is used. See #1687.

@peterjc peterjc changed the title Hide alphabet in Seq objects' __repr__ Hide alphabet in Seq objects' __repr__ [WIP; discussion only] Jul 3, 2018
@peterjc

peterjc commented Jul 3, 2018

Copy link
Copy Markdown
Member Author

This would need rebasing/merging given that #1687 was merged for Biopython 1.72, which hides the default alphabet.

@peterjc

peterjc commented Oct 16, 2018

Copy link
Copy Markdown
Member Author

Rebased (merge conflicts were from a couple of style updates, our flake8 settings are now stricter)

@peterjc

peterjc commented Sep 2, 2020

Copy link
Copy Markdown
Member Author

This work has been superseded during work on #2046 - we probably could have saved ourselves some work by merging this earlier.

@peterjc peterjc closed this Sep 2, 2020
@peterjc
peterjc deleted the hide_alphabet branch September 2, 2020 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants