Skip to content

Mauve XMFA AlignIO Parser - #544

Closed
hexylena wants to merge 16 commits into
biopython:masterfrom
hexylena:mauveio
Closed

hexylena wants to merge 16 commits into
biopython:masterfrom
hexylena:mauveio

Conversation

@peterjc

peterjc commented May 15, 2015

Copy link
Copy Markdown
Member

The input example file should also be added to test_AlignIO.py to check reading from Mauve and writing to other formats works. Note this is a old style print-and-compare test, see the chapter in the tutorial for background - you will need python run_tests.py -g test_AlignIO.py to generate the revised expected output.

@hexylena hexylena changed the title Mauve XMFA AlignIO Parser [WIP] Mauve XMFA AlignIO Parser May 15, 2015
@hexylena

Copy link
Copy Markdown
Contributor Author

@peterjc addressed concerns of pythonic counting, and adding to test_AlignIO.py. Now fighting through gracefully handling bad data, so I've marked this WIP and will ping you again when it passes all of its tests.

- proper 0 base counting in python in the test case
- 'unique' IDs (/{start}-{end}, like stockholm)
@hexylena hexylena changed the title [WIP] Mauve XMFA AlignIO Parser Mauve XMFA AlignIO Parser Nov 24, 2015
@hexylena

Copy link
Copy Markdown
Contributor Author

@peterjc I believe I've finally got MauveIO passing all of the tests!!

I've addressed all of your concerns mentioned above in-code. IDs are unique, pythonic counting is correct and under test.

The code is not as clean and beautiful as it could be, but it's functional and has to work around some of the built-in limitations (e.g. stockholm's IDs vs needing unique IDs, etc,) so I'm happy with this as-is. Please let me know what, if any, concerns you have that I still need to address in code.

@snayfach

Copy link
Copy Markdown

It doesn't look like Bio/AlignIO/MauveIO.py was ever merged into the main repository, right? If so, what's the issue? It would be super useful.

@hexylena

hexylena commented Mar 14, 2017 •

Copy link
Copy Markdown
Contributor Author

@snayfach I have long since given up on getting this merged (e.g. "hey, ping, what's up? what's missing?" comments were deleted, which is fair, they are perhaps not constructive.)

If you need to parse XMFA, I wrote a simple XMFA parser that my org uses instead of a proper BioPython one (which we'd still really, really love!) It doesn't generate BioPython compatible objects, but we needed something and didn't want to have to fork biopython just for my organisation. It's BSD licensed, though I'm happy to license it however anyone wants.

@peterjc

peterjc commented Mar 14, 2017

Copy link
Copy Markdown
Member

Unfortunately I'd forgotten about this, thank you for taking a look at it @snayfach - having never used XMFA myself, its harder to know how important it might be.

Looking back over the comments I may have wrongly assumed from @erasche's note about test working "(Except the last one which seems stuck? :/)" that it was still a work in progress.

From a quick skim over the changes I doubt the merge conflicts are very substantial, after all adding a new parser is largely self contained except for the general AlignIO tests.

@erasche: You've mentioned licensing a simpler XMFA parser under the BSD license. I presume given your comment on #898 you are also happy to dual licence this offered contribution under both the Biopython License Agreement AND the BSD 3-Clause License?

@hexylena

hexylena commented Mar 14, 2017 via email •

Copy link
Copy Markdown
Contributor Author

@peterjc

peterjc commented Mar 14, 2017

Copy link
Copy Markdown
Member

Thanks @erasche.

peterjc added a commit to peterjc/biopython that referenced this pull request Apr 7, 2017
See preceeding commits, from manual rebase of pull request biopython#544.
peterjc added a commit to peterjc/biopython that referenced this pull request Apr 7, 2017
See preceeding commits, from manual rebase of pull request biopython#544.
@peterjc

peterjc commented Apr 7, 2017

Copy link
Copy Markdown
Member

Rebased version here, including proposed NEWS.rst entry: https://github.com/peterjc/biopython/tree/mauveio

TravisCI passed: https://travis-ci.org/peterjc/biopython/builds/219753774

Does that look OK to you Eric?

Looking at this again reminded me we've not really solved what to do with record identifiers/start-end in any consistent way for Biopython - the can of worms I alluded to earlier - but trust these change's won't block any future changes in that area.

@hexylena

hexylena commented Apr 7, 2017

Copy link
Copy Markdown
Contributor Author

Yep, looks good to me @peterjc. Thank you for rebasing this!

@peterjc

peterjc commented Apr 7, 2017 •

Copy link
Copy Markdown
Member

Great - that rebased branch has been now applied to the master - see commits leading up to 7883e23

Because this was merged manually, from GitHub's point of view I'm just closing this pull request.

Thank you - and sorry for the long delay here.

@peterjc peterjc closed this Apr 7, 2017
peterjc added a commit to biopython/biopython.github.io that referenced this pull request Apr 7, 2017
MarkusPiotrowski pushed a commit to MarkusPiotrowski/biopython that referenced this pull request Oct 31, 2017
See preceeding commits, from manual rebase of pull request biopython#544.
@hexylena
hexylena deleted the mauveio branch June 18, 2020 06:51
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