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

flipdna() breaks visualizeflow() #8

Open
abs-yy opened this issue May 11, 2023 · 0 comments
Open

flipdna() breaks visualizeflow() #8

abs-yy opened this issue May 11, 2023 · 0 comments

Comments

@abs-yy
Copy link

abs-yy commented May 11, 2023

Hi @ponnhide,
The flipdna() function against a QUEEN instance breaks visualizeflow(). Here's a minimal example.

This works without any errors (No flow map would be visualized though).

M13F = QUEEN("GTAAAACGACGGCCAGT")
visualizeflow(M13F)

However, this one fails with the error below.

M13F = QUEEN("GTAAAACGACGGCCAGT")
visualizeflow(flipdna(M13F))
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[83], line 1
----> 1 visualizeflow(flipdna(M13F))

File ~/micromamba/envs/general/lib/python3.11/site-packages/QUEEN/qgraph.py:845, in visualizeflow(search_function, grouping, inherited_process, process_description, split_input, sf, ip, pd, si, alias_dict, *dnas)
    843 sdgflag = 0 
    844 for productname in productnames:
--> 845     if "_load" in info_dict and "cutdna" not in funcname:
    846         if productname not in nodes:
    847             dg.node(productname, label=productname, margin="0.05", shape="oval", fontname="Arial") 

TypeError: argument of type 'NoneType' is not iterable

Here's my environment

% pip list | grep -i queen
python-queen                  1.2.0
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