Repository navigation
Adding '.count_overlap()' method to Seq.py - #1301
Conversation
|
For the """...
HOWEVER, please note because python strings and Seq objects (and
MutableSeq objects) do a non-overlapping search, this may not give
the answer you expect:
>>> "AAAA".count("AA")
2
>>> print(Seq("AAAA").count("AA"))
2
An overlapping search would give the answer as three!
""" |
| 1 | ||
|
|
||
| Where substrings do not overlap, should behave the same as | ||
| the count() method: |
There was a problem hiding this comment.
I would show this in the doctest that follows - call both .count() and .count_overlap() one after the other?
|
I would think this should work for the sub_str = self._get_seq_str_and_check_alphabet(sub)
if len(sub_str) == 1:
if str(sub_str) == self._character:
if start == 0 and end >= self._length:
return self._length
else:
# This could be done more cleverly...
return str(self).count(sub_str, start, end)
else:
return 0
else:
if set(sub_str) == set(self._character):
if start == 0 and end >= self._length:
return end - start + 1 # TODO, check this is not off by one!
else:
# This could be done more cleverly...
return str(self).count(sub_str, start, end)
else:
return 0Both here and in the original UPDATE: The code was wrong. In particular I forgot to take into consideration
You'd also need to consider the case where the search string is longer than target string after applying the start:end restriction. |
|
For the test, perhaps something like this? def test_str_count_overlap_GG(self):
"""Check our count_overlap method using GG."""
expected = [3, 3, 3, 3, 1, ...] # FILL THIS IN!
for seq, exp in zip(self._examples, expected):
# Using search term GG as a string
self.assertEqual(seq.count_overlap("GG"), exp)
# Using search term GG as a Seq with generic alphabet
self.assertEqual(seq.count_overlap(Seq("GG")), exp)
def test_str_count_overlap_NN(self):
"""Check our count_overlap method using GG."""
expected = [0, 0, ..., 11, 0, 0, 0, ...] # FILL THIS IN!
for seq, exp in zip(self._examples, expected):
# Using search term NN as a string
self.assertEqual(seq.count_overlap("NN"), exp)
# Using search term GG as a Seq with generic alphabet
self.assertEqual(seq.count_overlap(Seq("NN")), exp)This could use def test_str_count_overlap_NN(self):
self.assertEqual(Seq("ACGTTTACG").count_overlap("TT"), 2)
self.assertEqual(Seq("ACGTTTACG", generic_dna).count_overlap("TT"), 2)
self.assertEqual(Seq("ACGTTTACG", generic_dna).count_overlap("TT", 3, 50), 2)
... |
|
Thank you Peter; I will look at this properly next week when I have some time and try to carry out all your suggestions By the way, why does |
|
Adil: See discussion on #1294
about new method vs extra argument.
…On Sun, Jul 2, 2017 at 6:08 PM, Adil Iqbal ***@***.***> wrote:
Just out of curiosity, what is the rationale for having a separate method
for this functionality? Would it not be simpler to include a Boolean
argument called "overlap" within the existing count method?
my_seq.count_overlap ("ATG")
versus
my_seq.count ("ATG", overlap=True)
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#1301 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAD519vJpUdMvTBmZIj6CJe7ivA0IJ9fks5sJ86OgaJpZM4OH6-r>
.
|
…t() == .count_overlap() tests to docstrings
|
Hi Peter, I have tried to address all your comments above including adding more to the docstrings, changing the implementation of NOTE, I did not implement Let me know what you think and if there is anything else to do, thanks! |
Codecov Report
@@ Coverage Diff @@
## master #1301 +/- ##
==========================================
+ Coverage 83.35% 84.24% +0.88%
==========================================
Files 317 318 +1
Lines 48630 48748 +118
==========================================
+ Hits 40537 41067 +530
+ Misses 8093 7681 -412
Continue to review full report at Codecov.
|
| # The implementation is currently identical to that of | ||
| # Seq.count_overlap() apart from the definition of sub_str | ||
| sub_str = str(sub) | ||
| self = str(self) |
There was a problem hiding this comment.
Redefining self seems like bad style, how about defining self_str = str(self) instead?
| >>> UnknownSeq(4, character="N").count_overlap("AA") == UnknownSeq(4, character="N").count("AA") | ||
| True | ||
|
|
||
| HOWEVER, do not use this method for such cases because the |
There was a problem hiding this comment.
I would have thought .count("AA") vs .count_overlap("AA") does not actually make much difference for the UnknownSeq? i.e. Should the HOWEVER... bit be removed?
| return self._length - len(sub_str) + 1 | ||
| else: | ||
| # This could be done more cleverly... | ||
| self = str(self) |
There was a problem hiding this comment.
Please avoid redefining self; see also separate comment about how to implement this efficiently
|
Yes, you're right - my outline for i.e. Avoid calling |
|
Thanks Peter, I'll use Indeed, I should have thought of that, I'll make an implementation using just the the start, end and substring size. I think the same logic could apply for Otherwise, do the |
|
Yes, looking at it now with fresh eyes we could improve I've not examine the coverage but the tests look good in principle. I'd want to make sure we have pathological examples like a search string longer than the main string: >>> UnknownSeq(3, character="N").count("NNN")
1
>>> UnknownSeq(3, character="N").count("NNNN")
0
>>> UnknownSeq(3, character="N").count_overlap("NNN")
1
>>> UnknownSeq(3, character="N").count_overlap("NNNN")
0 |
|
Ok, thanks, shall I look to change I will add some pathological tests along with the other changes. |
|
What ever is easier for you - they overlap so much and I'd be reviewing both changes anyway. |
…nknownSeq.count_overlap() docstring
|
I've just committed a modified version of The maths is simple, but I still found it quite confusing honestly. The edge case you mention where the substring is larger than I will look at updating EDIT: Apologies I already found a bug, the latest commits should fix it |
| # Using search term GG as a Seq with generic alphabet | ||
| self.assertEqual(seq.count_overlap(Seq("GG")), exp) | ||
|
|
||
| # Testing Seq() and MutableSeq() with variable start and end arguments |
There was a problem hiding this comment.
Maybe split this into a separate test method, e.g. insert
def test_count_overlap_start_end(self):| 2 | ||
| >>> UnknownSeq(4, character="N").count_overlap("NNNNN") | ||
| 0 | ||
| >>> UnknownSeq(4,character="N").count_overlap('NNN',1,2) |
There was a problem hiding this comment.
The docstring isn't following PEP8 in terms of spaces after commas - but I think this and most of the other doctests here would be better off in the unit tests as they do little in terms of documentation.
|
This looks about ready - other than moving some of the new doctests into the main test suite I didn't see anything worth delaying this, so it could well make it into Biopython 1.70 which I hope to do this week. 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 |
Original authors Frank Kauff and Cymon J. Cox and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - @Amrithasuresh #1575 - @biojerm #1847 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Chris Warth (@cswarth) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Cymon J. Cox (@cymon) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Frank Kauff (CVS username fkauff, on GitHub as @frankkl) #2246 (comment) - Iddo Friedberg (@idoerg) #898 (comment) - Joe Cora (@JoeCora) #898 (comment) - Kamil Slowikowski (@slowkow) #30 (comment) - Lenna Peterson (@lennax) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Sourav Singh (@souravsingh) #957 - Tiago Antao (@tiagoantao) #898 (comment) - Travis Wrightsman (@twrightsman) #898 (comment) - @unify N/A - Vincent Davis (@vincentdavis) #898 (comment) - Wayne Decatur (@fomightez) #898 (comment) - Wibowo Arindrarto (@bow) #898 (comment)
Original authors Frank Kauff and Cymon J. Cox and all the contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Brian Osborne (@bosborne) #898 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Chris Warth (@cswarth) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Cymon J. Cox (@cymon) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Frank Kauff (@frankkl) #2246 (comment) - Iddo Friedberg (@idoerg) #898 (comment) - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Suresh Panneerselvam (@Amrithasuresh) #1575
Original authors Thomas Hamelryck and Eric Talevich (for the unittest conversion), and the contributors as tracked with version control have agreed: - Andrew Guy (@andrewguy) #2212 (comment) - Ben Reynwar (@benreynwar) #898 (comment) - Bernhard C. Thiel (@Bernhard10) #968 - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Gokcen Eraslan (@gokceneraslan) #898 (comment) - Jack Twilley (@mathuin) #1049 (comment) - Jeroen Van Goey (@BioGeek) #898 (comment) - Joe Greener (@jgreener64) #1393 - Joerg Schaarschmidt (@schaarj) #1567 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Kian Ho (@kianho) #898 (comment) - Kristian Davidsen (@krdav) #898 (comment) - Kristian Rother (@krother) #898 (comment) - Lenna Peterson (@lennax) #898 (comment) - Markus Piotrowski (@MarkusPiotrowski) #898 (comment) - Milind Luthra (@milindl) #1020 - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Rasmus Fonseca (@RasmusFonseca) #1171 (comment) - Siong Kong (@siongkong) #1516 - Stefans Mezulis (@StefansM) #1445 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Thomas Hamelryck and all the contributors since as tracked with version control have agreed: - Andrew Guy (@andrewguy) #2212 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Carlos Pena (@carlosp420) #898 (comment) - Chaitanya Gupta (@iCHAIT) #898 (comment) - Chris Rands (@chris-rands) #1301 - chrismit (@Chris7) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Gokcen Eraslan (@gokceneraslan) #898 (comment) - Jeroen Van Goey (@BioGeek) #898 (comment) - Joe Greener (@jgreener64) #1393 - João Rodrigues (@JoaoRodrigues) #898 (comment) - Kian Ho (@kianho) #898 (comment) - Kristian Davidsen (@krdav) #898 (comment) - Lenna Peterson (@lennax) #898 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergei Lebedev (@superbobry) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html - Travis Wrightsman (@twrightsman) #898 (comment) - Wayne Decatur (@fomightez) #898 (comment) - Wibowo Arindrarto (@bow) #898 (comment)
Original author Yanbo Ye and contributors since as tracked with version control have all agreed: - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Seth Sims (@xzy3) biopython#390 (comment) - Vincent Davis (@vincentdavis) biopython#898 (comment) - Yanbo Ye (@lijax) biopython#898 (comment)
Original author Eric Talevich, authors on whose code it was based (Frank and Cymon), and contributors since as tracked with version control have agreed: - Aaron Gallagher (@habnabit) biopython#898 (comment) - Allis Tauri (@allista) biopython#898 (comment) - Ben Morris (@bendmorris) biopython#898 (comment) - Byron Smith (@bsmith89) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Cymon J. Cox (@cymon) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Frank Kauff (@frankkl) biopython#2246 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - @morrme biopython#1172 (comment) - Nigel Delaney (@evolvedmicrobe) biopython#241 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sourav Singh (@souravsingh) biopython#957 - Suresh Panneerselvam (@Amrithasuresh) biopython#1575 - Vishnu Chilakamarri (@vvc11) biopython#898 (comment)
Original author Eric Talevich and contributors since as tracked with version control have all agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sourav Singh (@souravsingh) biopython#957 - Suresh Panneerselvam (@Amrithasuresh) biopython#1575
Original author Yanbo Ye and contributors since as tracked with version control have all agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Jordan Willis (@jwillis0720) biopython#292 (comment) - Marco Vincenzi (@ZykeDev) biopython#1891 - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Ralf Stephan (@rwst) biopython#1900 - Sergio Valqui (@svalqui) biopython#1749 - Suresh Panneerselvam (@Amrithasuresh) biopython#1575 - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Yanbo Ye (@lijax) biopython#898 (comment)
Original author Eric Talevich and contributors since as tracked with version control have all agreed: - Barbara Mühlemann (@bamueh) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Fabio Zanini (@iosonofabio) biopython#898 (comment) - Nate Sutton (@nmsutton) biopython#898 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Ralf Stephan (@rwst) biopython#1900 - Xing (@xhlulu) biopython#1916
Original author Yanbo Ye and contributors since as tracked with version control have all agreed: - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Travis Wrightsman (@twrightsman) #898 (comment) - Seth Sims (@xzy3) #390 (comment) - Vincent Davis (@vincentdavis) #898 (comment) - Yanbo Ye (@lijax) #898 (comment)
Original author Eric Talevich, authors on whose code it was based (Frank and Cymon), and contributors since as tracked with version control have agreed: - Aaron Gallagher (@habnabit) #898 (comment) - Allis Tauri (@allista) #898 (comment) - Ben Morris (@bendmorris) #898 (comment) - Byron Smith (@bsmith89) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Cymon J. Cox (@cymon) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Frank Kauff (@frankkl) #2246 (comment) - Francesco Gastaldello (@Gasta88) #1063 - @morrme #1172 (comment) - Nigel Delaney (@evolvedmicrobe) #241 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Sourav Singh (@souravsingh) #957 - Suresh Panneerselvam (@Amrithasuresh) #1575 - Vishnu Chilakamarri (@vvc11) #898 (comment)
Original author Eric Talevich and contributors since as tracked with version control have all agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Sourav Singh (@souravsingh) #957 - Suresh Panneerselvam (@Amrithasuresh) #1575
Original author Yanbo Ye and contributors since as tracked with version control have all agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Jordan Willis (@jwillis0720) #292 (comment) - Marco Vincenzi (@ZykeDev) #1891 - @morrme #1172 (comment) - Peter Cock (@peterjc) #898 (comment) - Ralf Stephan (@rwst) #1900 - Sergio Valqui (@svalqui) #1749 - Suresh Panneerselvam (@Amrithasuresh) #1575 - Travis Wrightsman (@twrightsman) #898 (comment) - Yanbo Ye (@lijax) #898 (comment)
Original author Eric Talevich and contributors since as tracked with version control have all agreed: - Barbara Mühlemann (@bamueh) #898 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Eric Talevich (@etal) #898 (comment) - Fabio Zanini (@iosonofabio) #898 (comment) - Nate Sutton (@nmsutton) #898 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Ralf Stephan (@rwst) #1900 - Xing (@xhlulu) #1916
Original author Bartek Wilczynski and contributors since as tracked by version control have all agreed: - Bartek Wilczynski (@barwil) http://mailman.open-bio.org/pipermail/biopython/2018-August/016533.html - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Gert Hulselmans (@ghuls) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nader Morshed (@naderm) biopython#898 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Travis Wrightsman (@twrightsman) biopython#898 (comment)
Original authors Bartek Wilczynski and Michiel de Hoon and other contributors tracked by version control have all agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Andrey Raspopov (@Andrey-Raspopov) biopython#2444 - Antony Lee (@anntzer) biopython#898 (comment) - Ariel Aptekmann (@aralap) biopython#1734 - Bartek Wilczynski (@barwil) http://mailman.open-bio.org/pipermail/biopython/2018-August/016533.html - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Gert Hulselmans (@ghuls) biopython#898 (comment) - Lenna Peterson (@lennax) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nader Morshed (@naderm) biopython#898 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Nicolas Fontrodona (@NFontrodona) biopython#1407 - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sujan Dulal (@Dsujan) biopython#2430 - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Victor Lin (@victorlin) biopython#1986 - Wibowo Arindrarto (@bow) biopython#898 (comment)
Original author Bartek Wilczynski and contributors since as tracked by version control have all agreed: - Bartek Wilczynski (@barwil) http://mailman.open-bio.org/pipermail/biopython/2018-August/016533.html - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Gert Hulselmans (@ghuls) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Nader Morshed (@naderm) #898 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Travis Wrightsman (@twrightsman) #898 (comment)
Original authors Bartek Wilczynski and Michiel de Hoon and other contributors tracked by version control have all agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Andrey Raspopov (@Andrey-Raspopov) #2444 - Antony Lee (@anntzer) #898 (comment) - Ariel Aptekmann (@aralap) #1734 - Bartek Wilczynski (@barwil) http://mailman.open-bio.org/pipermail/biopython/2018-August/016533.html - Carlos Pena (@carlosp420) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Gert Hulselmans (@ghuls) #898 (comment) - Lenna Peterson (@lennax) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Nader Morshed (@naderm) #898 (comment) - Nick Negretti (@nimne) #1768 (comment) - Nicolas Fontrodona (@NFontrodona) #1407 - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Sujan Dulal (@Dsujan) #2430 - Travis Wrightsman (@twrightsman) #898 (comment) - Victor Lin (@victorlin) #1986 - Wibowo Arindrarto (@bow) #898 (comment)
Original author Michiel de Hoon and contributors since as tracked by version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Andrey Raspopov (@Andrey-Raspopov) biopython#2444 - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Carlos Pena (@carlosp420) biopython#898 (comment) - Chad Parmet (@cparmet) biopython#1633 (comment) - Chris Mitchell (@chrismit aka @Chris7) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - David Nicholson (@danich1) biopython#898 (comment) - Deepak Khatri (@lorforlinux) biopython#2443 - Francesco Gastaldello (@Gasta88) biopython#1063 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Tiago Antao (@tiagoantao) biopython#898 (comment) - Wibowo Arindrarto (@bow) biopython#898 (comment) The exception is Lucas Sinclair (@xapple) whose one line change has been removed (see previous commit).
Original author Michiel de Hoon and contributors since as tracked by version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Andrey Raspopov (@Andrey-Raspopov) biopython#2444 - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Carlos Pena (@carlosp420) biopython#898 (comment) - Chad Parmet (@cparmet) biopython#1633 (comment) - Chris Mitchell (@chrismit aka @Chris7) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - David Nicholson (@danich1) biopython#898 (comment) - Deepak Khatri (@lorforlinux) biopython#2443 - Francesco Gastaldello (@Gasta88) biopython#1063 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Tiago Antao (@tiagoantao) biopython#898 (comment) - Wibowo Arindrarto (@bow) biopython#898 (comment) The exception is Lucas Sinclair (@xapple) whose one line change has been removed (see previous commit).
Original author Michiel de Hoon and contributors since as tracked by version control have agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Andrey Raspopov (@Andrey-Raspopov) #2444 - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Carlos Pena (@carlosp420) #898 (comment) - Chad Parmet (@cparmet) #1633 (comment) - Chris Mitchell (@chrismit aka @Chris7) #898 (comment) - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - David Nicholson (@danich1) #898 (comment) - Deepak Khatri (@lorforlinux) #2443 - Francesco Gastaldello (@Gasta88) #1063 - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Tiago Antao (@tiagoantao) #898 (comment) - Wibowo Arindrarto (@bow) #898 (comment) The exception is Lucas Sinclair (@xapple) whose one line change has been removed (see previous commit).
Original author Tiago Antao and other contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Brian Osborne (@bosborne) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Tiago Antao (@tiagoantao) biopython#898 (comment)
Original author Tiago Antao and other contributors since as tracked with version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Lenna Peterson (@lennax) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Tiago Antao (@tiagoantao) biopython#898 (comment) - Travis Wrightsman (@twrightsman) biopython#898 (comment) - Vincent Davis (@vincentdavis) biopython#898 (comment)
Original author Tiago Antao and other contributors since as tracked with version control have agreed: - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Francisco Pina-Martins (@StuntsPT) biopython#583 (comment) - Jeremy LaBarge (@biojerm) biopython#1847 (comment) - Lenna Peterson (@lennax) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Nick Semenkovich (@semenko) biopython#898 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Suresh Panneerselvam (@Amrithasuresh) biopython#1575 - Tiago Antao (@tiagoantao) biopython#898 (comment) - Travis Wrightsman (@twrightsman) biopython#898 (comment)
Original author Tiago Antao and contributors since as tracked by version control have agreed: - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Lenna Peterson (@lennax) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Tiago Antao (@tiagoantao) biopython#898 (comment) - Travis Wrightsman (@twrightsman) biopython#898 (comment)
Original author Ben Morris, and Frank Kauff, Cymon Cox and Eric Talvich on whose work it was partly based, and the other contributors since as recorded by version control have agrred: - Andrew Dalke (@adalke) http://mailman.open-bio.org/pipermail/biopython-dev/2013-August/019941.html - Bartek Wilczyński (@barwil) http://mailman.open-bio.org/pipermail/biopython/2018-August/016533.html - Ben Morris (@bendmorris) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Cymon Cox (@cymon) biopython#898 (comment) - Eric Talevich (@etal) biopython#898 (comment) - Frank Kauff (CVS username fkauff, on GitHub as @frankkl) biopython#2246 (comment) - Karthikeyan Singaravelan (@tirkarthi) biopython#2774 - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Sourav Singh (@souravsingh) biopython#957 - Suresh Panneerselvam (@Amrithasuresh) biopython#1575 - Thomas Hamelryck (CVS username nisse) https://mailman.open-bio.org/pipermail/biopython/2018-September/016546.html
Original author Eric Talevich and contributors since as tracked by version control have agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Andrey Raspopov (@Andrey-Raspopov) biopython#2444 - 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) - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Nigel Delaney (@evolvedmicrobe) biopython#241 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Suresh Panneerselvam (@Amrithasuresh) biopython#1575
Original authors Cymon J. Cox and Frank Kauff, other named contributors, and contributors as tracked by version control have all agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Cymon J. Cox (@cymon) biopython#898 (comment) - Frank Kauff (@frankkl) biopython#2246 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Travis Wrightsman (@twrightsman) biopython#898 (comment)
Original authors Cymon J. Cox and Frank Kauff, and contributors since as tracked by version control have all agreed: - Adhemar Zerlotini (@azneto) biopython#1412 (comment) - Andrey Raspopov (@Andrey-Raspopov) biopython#2444 - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Carlos Pena (@carlosp420) biopython#898 (comment) - Chris Rands (@chris-rands) biopython#1301 - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Connor McCoy (@cmccoy) biopython#898 (comment) - Cymon J. Cox (@cymon) biopython#898 (comment) - Frank Kauff (@frankkl) biopython#2246 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nick Negretti (@nimne) biopython#1768 (comment) - Peter Cock (@peterjc)
Original authors Cymon J. Cox and Frank Kauff, other named contributors, and contributors as tracked by version control have all agreed: - Adhemar Zerlotini (@azneto) #1412 (comment) - Brad Chapman (@chapmanb) http://mailman.open-bio.org/pipermail/biopython-dev/2013-July/019903.html - Chris Rands (@chris-rands) #1301 - Christian Brueffer (@cbrueffer) #898 (comment) - Connor McCoy (@cmccoy) #898 (comment) - Cymon J. Cox (@cymon) #898 (comment) - Frank Kauff (@frankkl) #2246 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Nick Negretti (@nimne) #1768 (comment) - Peter Cock (@peterjc) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Travis Wrightsman (@twrightsman) #898 (comment)
Following issue 1294, I have added a
.count_overlap()method to theSeq,UnknownSeqandMutableSeqclasses inBio/Seq.py. I have also added a line in each.count()method docstring referring to the new method.Unresolved issues:
selfto strings so thatstr.find()can be used. There might be better implementations for theUnknownSeqandMutableSeqclasses.Tests/test_Seq_objs.pybut I was not clear how best to implement this.I would appreciate feedback, suggestions and any contributions, thank you!