Skip to content

Update MAST parser for MEME>=4.11.4 - #1986

Merged
peterjc merged 2 commits into
biopython:masterfrom
victorlin:master
May 20, 2019
Merged

peterjc merged 2 commits into
biopython:masterfrom
victorlin:master

Conversation

@victorlin

@victorlin victorlin commented Mar 28, 2019 •

Copy link
Copy Markdown
Contributor

From MEME Suite Release Notes under version 4.11.4:

MEME motif names are now their consensus sequence, rather than a number, and the alternate ID is "MEME-i", where "i" = 1, 2, 3,... is the old motif name.

Newer versions of MEME contain motif ID and alternate ID. This commit updates the MAST parser to account for those additions. Older files without the ID/ALT ID are still supported.

I can add tests with newer MAST output files in another pull request.


This pull request addresses issue #1980.

  • I hereby agree to dual licence this and any previous contributions under both
    the Biopython License Agreement AND the BSD 3-Clause License.

  • I have read the CONTRIBUTING.rst file and understand that AppVeyor and
    TravisCI will be used to confirm the Biopython unit tests and flake8 style
    checks pass with these changes.

  • I have added my name to the alphabetical contributors listings in the files
    NEWS.rst and CONTRIB.rst as part of this pull request, am listed
    already, or do not wish to be listed. (This acknowledgement is optional.)

@victorlin
victorlin requested a review from mdehoon as a code owner March 28, 2019 17:44
@codecov

codecov Bot commented Mar 28, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #1986 into master will decrease coverage by <.01%.
The diff coverage is 75%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1986      +/-   ##
==========================================
- Coverage   84.86%   84.86%   -0.01%     
==========================================
  Files         318      318              
  Lines       50889    50895       +6     
==========================================
+ Hits        43187    43191       +4     
- Misses       7702     7704       +2
Impacted Files Coverage Δ
Bio/motifs/meme.py 81.12% <100%> (+0.15%) ⬆️
Bio/motifs/mast.py 91.52% <66.66%> (-1.46%) ⬇️

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 ce904f7...7ece66a. Read the comment docs.

@mdehoon

mdehoon commented Mar 28, 2019

Copy link
Copy Markdown
Contributor

Does this work both with current versions of meme and with older versions?

@victorlin

Copy link
Copy Markdown
Contributor Author

Yes, older files without the IDand ALT ID columns are still supported. I can add tests for this in another PR.

@mdehoon

mdehoon commented Apr 2, 2019

Copy link
Copy Markdown
Contributor

I am OK with this pull request.

@victorlin victorlin mentioned this pull request May 19, 2019
3 tasks done
@peterjc

peterjc commented May 20, 2019

Copy link
Copy Markdown
Member

Looks like a merge conflict has blocked the automated testing, I will try rebasing this now...

Comment thread Bio/motifs/mast.py Resolved
@peterjc
peterjc merged commit 13bb618 into biopython:master May 20, 2019
@peterjc

peterjc commented May 20, 2019

Copy link
Copy Markdown
Member

Thank you - this will be in Biopython 1.74 👍

@victorlin

Copy link
Copy Markdown
Contributor Author

Great!

On a related note, I've implemented an XML parser for MAST that will hopefully replace this text-based parser (ref #1988). I'll prepare it in a new pull request along with the XML test files.

peterjc added a commit to peterjc/biopython that referenced this pull request Dec 30, 2019
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)
peterjc added a commit that referenced this pull request Jan 1, 2020
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)
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.

3 participants