Skip to content

RNA alphabet for meme parsing / flake8 E741 - #1421

Merged
peterjc merged 12 commits into
biopython:masterfrom
peterjc:rna-alphabet
Oct 24, 2017
Merged

peterjc merged 12 commits into
biopython:masterfrom
peterjc:rna-alphabet

Conversation

@peterjc

@peterjc peterjc commented Oct 24, 2017 •

Copy link
Copy Markdown
Member

Rebased version of #867, including acknowledgement of @zaidurrehman

Update Plus fixes for flake8 E741, see #1422

@peterjc

peterjc commented Oct 24, 2017

Copy link
Copy Markdown
Member Author

TravisCI is failing due to new issue #1422

@codecov

codecov Bot commented Oct 24, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #1421 into master will increase coverage by 1.37%.
The diff coverage is 72.11%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1421      +/-   ##
==========================================
+ Coverage   83.39%   84.77%   +1.37%     
==========================================
  Files         319      320       +1     
  Lines       49000    49049      +49     
==========================================
+ Hits        40864    41580     +716     
+ Misses       8136     7469     -667
Impacted Files Coverage Δ
Bio/SeqUtils/__init__.py 59.72% <ø> (+0.27%) ⬆️
Bio/PDB/Superimposer.py 93.54% <100%> (ø) ⬆️
Bio/Restriction/Restriction.py 84.04% <100%> (+0.54%) ⬆️
Bio/PDB/parse_pdb_header.py 90.5% <100%> (ø) ⬆️
Bio/SVDSuperimposer/__init__.py 87.14% <100%> (-0.19%) ⬇️
Bio/triefind.py 97.82% <100%> (ø) ⬆️
Bio/PDB/Entity.py 83.24% <100%> (ø) ⬆️
Bio/motifs/meme.py 80.89% <100%> (+0.15%) ⬆️
Bio/Blast/NCBIStandalone.py 90.49% <100%> (ø) ⬆️
Bio/PDB/QCPSuperimposer/__init__.py 90% <100%> (-0.15%) ⬇️
... and 35 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 1538c8d...5460793. Read the comment docs.

@peterjc peterjc changed the title RNA alphabet for meme parsing RNA alphabet for meme parsing / flake8 E741 Oct 24, 2017
This fixes new error in flake v3.5.0 from pccodestyle 2.1.0,

$ flake8 Scripts/
Scripts/xbbtools/nextorf.py:102:9: E741 ambiguous variable name 'l'
Scripts/xbbtools/xbb_widget.py:214:9: E741 ambiguous variable name 'l'

Rational is to avoid the characters 'l', 'O', or 'I' as variable
names because in some fonts they are indistinguishable from the
numerals one and zero.

Closes biopython#1422
E741 ambiguous variable name 'O'
These were not strings, but lists of strings
built from a line of the file.

Goal is to next allow renaming l --> line to
solve new flake8 warning:

E741 ambiguous variable name 'l'
This is to solve new flake8 warning:

E741 ambiguous variable name 'l'
This should resolve biopython#1422, flake8 v3.5.0 uses
pycodestyle 2.1.0 which complains about lower
case l etc due to scope for confusion with 1
etc.
@peterjc
peterjc merged commit a06862c into biopython:master Oct 24, 2017
@peterjc
peterjc deleted the rna-alphabet branch October 24, 2017 17:24
@peterjc

peterjc commented Oct 24, 2017

Copy link
Copy Markdown
Member Author

@tiagoantao I've merged this, but just in case, could you double check I didn't break anything in Bio/PopGen/GenePop/Controller.py with 359b01e and 96d4be3 (e.g. running any local examples you have as our automated test coverage is only about 64%). Thanks.

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