Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssertionError in kmer2seq for motif search #105

Open
Vejni opened this issue May 24, 2023 · 0 comments
Open

AssertionError in kmer2seq for motif search #105

Vejni opened this issue May 24, 2023 · 0 comments

Comments

@Vejni
Copy link

Vejni commented May 24, 2023

Maybe I do not understand what kmer2seq in motif_utils.py wants to do, but currently it is only concatenating the first bases of each kmer, plus the last kmer as it is, triggering the AssertionError in the function. If anyone is looking at this, changing the function (lazily) to this worked for me:

def kmer2seq(kmers):
    """
    Convert kmers to original sequence
    
    Arguments:
    kmers -- str, kmers separated by space.
    
    Returns:
    seq -- str, original sequence.

    """
    kmers_list = kmers.split(" ")
    seq = "".join(kmers_list)
    return seq
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

No branches or pull requests

1 participant