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

tomtom query edge case in fetch_tomtom_matches #25

Open
mhfzsharmin opened this issue Aug 31, 2018 · 0 comments
Open

tomtom query edge case in fetch_tomtom_matches #25

mhfzsharmin opened this issue Aug 31, 2018 · 0 comments

Comments

@mhfzsharmin
Copy link
Contributor

@suragnair not all the query get at least $n number of motif matches. You can include the condition that if the next element in dat variable is empty to breaks the loop.

    r = []
    for t in dat[1:1+n]:
        if(len(t)<4):
            break
        mtf = {}
        mtf['Target ID'] = t[tget_idx]
        mtf['p-value'] = float(t[pval_idx])
        mtf['E-value'] = float(t[eval_idx])
        mtf['q-value'] = float(t[qval_idx])
        r.append(mtf)

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