Repository navigation
Small fix to gc skew - #1131
Small fix to gc skew#1131
Conversation
|
When I was expecting you to check if |
|
One of the things we check with TravisCI is Python style, and that is failing: You can install flake8 using |
|
You'll need to import |
|
Yes sorry I got confused in my branches and I forgot the include in the one I sent. I'll check the Python styles ASAP. Regarding my fix, indeed it worked when g == c but I was just thinking that this would save one operation for the cases where G and Cs are present and equal. I could check g + c == 0 instead but I think the count function never returns negative values so my fix should be safe no ? |
|
Yes, the counts should never be negative. How about something like this?: |
|
Okay then :) It was also the way this was done for the GC function in the same file, I should have checked it before, sorry. |
Codecov Report
@@ Coverage Diff @@
## master #1131 +/- ##
==========================================
+ Coverage 78.69% 79.58% +0.89%
==========================================
Files 322 322
Lines 51716 51004 -712
==========================================
- Hits 40696 40594 -102
+ Misses 11020 10410 -610
Continue to review full report at Codecov.
|
|
(The coverage report is a bit odd, but I was tinkering with coverage settings this afternoon) Other than the docstring this looks good: Something like this?: Are you happy to dual licence your contributions under both the Biopython License Agreement AND the BSD 3-Clause License? See #898. Also, are you happy to be thanked by name in the |
|
Yes I agree to all of this :) |
|
I emailed your GMail account a few days ago: Would you prefer to be acknowledged under your real name, or just as Cashalow? |
|
Thank you - merged as the first pull request for what will be Biopython 1.70. |
Squashed commit of pull request biopython#1131, closes biopython#1107.
See pull request biopython#1131 for issue biopython#1107.
|
yes
Le jeu. 20 sept. 2018 à 16:32, Peter Cock <[email protected]> a
écrit :
… @sachalau <https://github.com/sachalau> Hi again Sacha. Are you happy to
dual licence your contributions under both the Biopython License Agreement
AND the BSD 3-Clause License? See #898
<#898>. Thank you.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1131 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APfPtcargGYPf7ukm807LFSo_rYPMqp0ks5uc6bkgaJpZM4My21Y>
.
|
|
Thank you - We still need one more author's agreement before we can dual license |
(Thomas Sicheritz-Ponten and Cecilia Alsmark) and all the recorded contributors since have agreed: - Anders Pitman (@anderspitman) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Cecilia Alsmark http://mailman.open-bio.org/pipermail/biopython/2018-September/016542.html - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) biopython#898 (comment) - Jeff Chang (@jefftc) biopython#898 (comment) - Lenna Peterson (@lennax) biopython#898 (comment) - Markus Piotrowski (@MarkusPiotrowski) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Cashalow (@sachalau) biopython#1131 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Thomas Sicheritz-Ponten http://mailman.open-bio.org/pipermail/biopython/2018-April/016427.html - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Wibowo Arindrarto (@bow) biopython#898 (comment)
The original authors back when this file was Bio/sequtils.py (Thomas Sicheritz-Ponten and Cecilia Alsmark) and all the recorded contributors since have agreed: - Anders Pitman (@anderspitman) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Cecilia Alsmark http://mailman.open-bio.org/pipermail/biopython/2018-September/016542.html - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) biopython#898 (comment) - Jeff Chang (@jefftc) biopython#898 (comment) - Lenna Peterson (@lennax) biopython#898 (comment) - Markus Piotrowski (@MarkusPiotrowski) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Cashalow (@sachalau) biopython#1131 (comment) - Sergei Lebedev (@superbobry) biopython#898 (comment) - Thomas Sicheritz-Ponten http://mailman.open-bio.org/pipermail/biopython/2018-April/016427.html - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Wibowo Arindrarto (@bow) biopython#898 (comment)
The original authors back when this file was Bio/sequtils.py (Thomas Sicheritz-Ponten and Cecilia Alsmark) and all the recorded contributors since have agreed: - Anders Pitman (@anderspitman) #898 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Cecilia Alsmark http://mailman.open-bio.org/pipermail/biopython/2018-September/016542.html - Christian Brueffer (@cbrueffer) #898 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Connor McCoy (@cmccoy) #898 (comment) - Jeff Chang (@jefftc) #898 (comment) - Lenna Peterson (@lennax) #898 (comment) - Markus Piotrowski (@MarkusPiotrowski) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - Peter Cock (@peterjc) #898 (comment) - Cashalow (@sachalau) #1131 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Thomas Sicheritz-Ponten http://mailman.open-bio.org/pipermail/biopython/2018-April/016427.html - Travis Wrightsman (@twrightsman) #898 (comment) - Wibowo Arindrarto (@bow) #898 (comment)
In reference to issue #1107 I have add a check whether G and C are in same quantity and return 0 if so. And a unittest on a window with no G or C.