Repository navigation
RNA alphabet for meme parsing - #867
zaidurrehman wants to merge 4 commits into
Conversation
Current coverage is 88.77% (diff: 100%)@@ master #867 diff @@
==========================================
Files 312 524 +212
Lines 47560 114680 +67120
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 38043 101803 +63760
- Misses 9517 12877 +3360
Partials 0 0
|
| def reverse_complement(self): | ||
| values = {} | ||
| if "U" in self.alphabet.letters: | ||
| if isinstance(self.alphabet, Alphabet.RNAAlphabet): |
There was a problem hiding this comment.
We probably don't have to worry about this in Bio.motifs, but this could use this private function in Bio.Alphabet to deal with the messy stuff about gaps etc:
if isinstance(Alphabet._get_base_alphabet(self.alphabet), Alphabet.RNAAlphabet):
|
This looks good. Are you familiar with the unittest framework? https://docs.python.org/2.6/library/unittest.html Can you add your RNA meme file under We also need tests in |
|
If you're not familiar with writing tests, then we'd need to do that as part of merging this contribution. 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 |
|
I apologize for my late reply and contribution.
I have added the test file in Tests/motifs/ and a test parsing it in
Tests/test_motifs.py as you suggested. I am going to make a pull request
now.
Yes, I am comfortable with the dual license contributions, and my name in
NEWS and CONTRIB files.
Thanks and best regards,
Zaid Ur-Rehman
…On Fri, Dec 9, 2016 at 4:31 PM, Peter Cock ***@***.***> wrote:
If you're not familiar with writing tests, then we'd need to do that as
part of merging this contribution.
Are you happy to dual licence your contributions under both the *Biopython
License Agreement* *and* the *BSD 3-Clause License*? See #898
<#898>.
Also, are you happy to be thanked by name in the NEWS and CONTRIB files?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#867 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APQxZLOhOUx0rsQsUlPot25QQ1uHbF4iks5rGTwqgaJpZM4JD3Eo>
.
|
|
I am planning to fix several issues related to the MEME parser - this was one of them. Can this be merged if there are no issues? I don't want to redo work others have already done. |
|
I'm OK with it. |
|
Thanks Michiel! OK, I will look at merging this today (and dealing with the merge conflict). |
|
@zaidurrehman do you want to be listed as |
|
|
|
Changes applied via #1421, thank you. |
Original authors Bartek Wilczynski (CVS username bartek, on GitHub as @barwil) and Jeff Chang (CVS username jchang, on GitHub as @jefftc) and other contributors since have agreed: - Antony Lee (@anntzer) #898 (comment) - Ariel Aptekmann (@aralap) #1734 - bartek (@barwil) http://mailman.open-bio.org/pipermail/biopython/2018-August/016533.html - Bertrand Néron (@bneron) #898 (comment) - Wibowo Arindrarto (@bow) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Gert Hulselmans (@ghuls) #898 (comment) - Jared Andrews (@j-andrews7) #898 (comment) - Jeff Chang (@jefftc) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - Peter Cock (@peterjc) #898 (comment) - Zaid Ur-Rehman (@zaidurrehman) #867
Originally checked in as Bio/Motif/Matrix.py the 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 - Brian Osborne (@bosborne) biopython#898 (comment) - Carlos Pena (@carlosp420) biopython#898 (comment) - Christian Brueffer (@cbrueffer) biopython#898 (comment) - Francesco Gastaldello (@Gasta88) biopython#1063 - Ilya Flyamer (@Phlya) biopython#2386 - Matt Ruffalo (@mruffalo) biopython#898 (comment) - Michiel de Hoon (@mdehoon) biopython#898 (comment) - @morrme biopython#1172 (comment) - Nader Morshed (@naderm) biopython#898 (comment) - Peter Cock (@peterjc) biopython#898 (comment) - Sefa Kilic (@sefakilic) biopython#898 (comment) - Sergio Valqui (@svalqui) biopython#1749 - Zaid Ur-Rehman (@zaidurrehman) biopython#867
Originally checked in as Bio/Motif/Matrix.py the 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 - Brian Osborne (@bosborne) #898 (comment) - Carlos Pena (@carlosp420) #898 (comment) - Christian Brueffer (@cbrueffer) #898 (comment) - Francesco Gastaldello (@Gasta88) #1063 - Ilya Flyamer (@Phlya) #2386 - Matt Ruffalo (@mruffalo) #898 (comment) - Michiel de Hoon (@mdehoon) #898 (comment) - @morrme #1172 (comment) - Nader Morshed (@naderm) #898 (comment) - Peter Cock (@peterjc) #898 (comment) - Sefa Kilic (@sefakilic) #898 (comment) - Sergio Valqui (@svalqui) #1749 - Zaid Ur-Rehman (@zaidurrehman) #867
The latest meme tool also supports sequences with RNA alphabet. Biopython's meme parsing however only works for DNA alphabet. (Issue #865 )
I have added a few lines to Bio/motifs/meme.py and Bio/motifs/matrix.py which ensure that the parser can also support the RNA alphabet. Though I have not made any changes to the latter file's docstring, which explicitly mentions that some of the methods are solely defined for DNA alphabet.
I am attaching an example motif file with RNA alphabet. My proposed changes can be tested on this file.
meme.txt