Skip to content

RNA alphabet for Bio.motif.meme #865

Closed

Description

@zaidurrehman

The latest version of meme tool supports RNA alphabet. The parser for meme in Bio.motif is outdated and only accommodates protein and DNA alphabet.

Adding a single 'elif' statement to Bio/motifs/meme.py on line 176 would solve the issue;

if line == 'ACGT':
    al = IUPAC.unambiguous_dna
elif line == 'ACGU':
    al = IUPAC.unambiguous_rna
else:
    al = IUPAC.protein

Activity

  1. peterjc commented on Jun 28, 2016

    @peterjc
    Member

    Can you turn this into a pull request? You can even do this via GitHub by editing the file within Python, but I'd suggest trying http://biopython.org/wiki/GitUsage

    Do you have a (small) RNA alphabet example motif file we can use for a new test case?

  2. zaidurrehman commented on Jun 29, 2016

    @zaidurrehman
    ContributorAuthor

    Sure, I can make the changes and make a pull request. Just give me a day for it.
    Here is a sample meme output file with RNA alphabet:
    meme.txt

  3. peterjc commented on Oct 24, 2017

    @peterjc
    Member

    Fixed via #1421, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions