Open willhuynh11 opened 2 years ago
Hi @willhuynh11 !
This error you're getting, zip argument #1 must support iteration
, is quite transparent: it means that the first argument to zip
is not iterable; the first argument being axes
. I cannot test immediately but I suppose axes
may be None
in the event where hits
is empty; in modern versions of matplotlib
passing a zero nrows
to subplots
raises an error but it could be you're using a version that just returns None
there.
Hey Martin,
Thanks for making this tool, I'm finding it very useful for my current project.
I have a profile hmm database obtained from CONJScan that I want to use to scan through a fasta file containing multiple sequences. I am running into some issues that I can't seem to figure out a work around.
To preface my issue, let me explain what I am trying to do: Using the CONJScan database and python, I am iterating over the profile hmms in a for-loop. Each loop, I am using a profile hmm to scan through a fasta file containing multiple sequences. Then at the end of each loop, I output a graphic via dna_features_viewer with a unique name containing a visualization of my alignments.
There are two problems I am encountering:
Occasionally, I will receive an error saying that
zip argument #1 must be iterable
, this is in reference tofor ax, hit in zip(axes, hits):...
whereargument #1 in zip(axes, hits)
is not iterable. I am not sure why this is because aside from the ad-hoc loop I created to go through each profile hmm in my database, everything was done mimicking the example provided on the readthedocs.io page.At the end of the process, I will have multiple hits from different hmm profiles on the same fasta sequence. However, I would like to visualize them together, rather then separately. I am unsure if I am using the tool incorrectly or if this is unsupported currently.
Copied below is my code, excuse me for the messiness, I am still testing things out.
Any advise you can provide would help immensely. Thank you.