Repository navigation
Update Bio/motifs/__init__.py weblogo - #1407
Conversation
in weblogo function, the parameter stack_per_line seems not to work. The real name seems to be stack_per_line
|
Could you also extend I agree looking at the official weblogo command line tool (which happens to be written in Python), this should be Would you wish to be thanked by name? If so, what name should we use (since your GitHub account does not list one)? |
Codecov Report
@@ Coverage Diff @@
## master #1407 +/- ##
==========================================
+ Coverage 84.78% 84.78% +<.01%
==========================================
Files 319 320 +1
Lines 49050 49048 -2
==========================================
Hits 41587 41587
+ Misses 7463 7461 -2
Continue to review full report at Codecov.
|
|
Hello,
I ran a test by adding this following lines in the check function :
# Using Seq objects and passing exactly the same alphabet with some advanced options:
m = motifs.create([Seq(s, alpha) for s in seqs_as_strs], alpha)
m.weblogo(os.devnull, **{'stacks_per_line' : '40'})
m.weblogo(os.devnull, **{'stack_per_line': '40'})
But with the options
Hello,
I ran a test by adding this following lines in the check function :
# Using Seq objects and passing exactly the same alphabet with some advanced options:
m = motifs.create([Seq(s, alpha) for s in seqs_as_strs], alpha)
m.weblogo(os.devnull, **{'stacks_per_line' : '50'})
m.weblogo(os.devnull, **{'stack_per_line': '50'})
But with the option "stack per line" a weblogo is still produced without any errors but only 40 nucleotide positions are display per line.
With the option "stacks per line" the weblogo is produced with 50 nucleotides per line.
Thus, with the module test_motifs_online.py, i cannot see if this advanced parameter works.
If you want to thank me, you can write my full name: Nicolas Fontrodona.
Thank you,
Fontrodona Nicolas
|
See preceeding commit from pull request biopython#1407.
|
OK, there may not be a good way to write an automatic test for this. |
|
Merged, thank you for your contribution :) |
See preceeding commit from pull request biopython#1407.
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 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)
in weblogo function, the parameter stack_per_line seems not to work. The real name seems to be stacks_per_line
This pull request addresses issue #...
I hereby agree to dual licence this and any previous contributions under both
the Biopython License Agreement AND the BSD 3-Clause License.
I (am/am not) happy to be thanked by name in the
NEWS.rstandCONTRIB.rstfiles.I have read the
CONTRIBUTING.rstfile and understand that AppVeyor andTravisCI will be used to confirm the Biopython unit tests and
flake8stylechecks pass with these changes.