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

Cross-chromosome comparison errors out due to string integer in print statement #20

Closed
ASLeonard opened this issue Apr 11, 2024 · 1 comment

Comments

@ASLeonard
Copy link

With v0.8.0, I get an error when comparing across two chromosomes (moddotplot interactive -f two_chromosomes.fa --compare-only)

    f"Building pairwise matrices for {seq_list[i]} and {seq_list[j]}, using a minimum window size of {window_lengths[0]}.... \n"
                                                        ~~~~~~~~^^^
TypeError: list indices must be integers or slices, not str

From these lines

print(
f"Quickly building pairwise matrices for {seq_list[i]} and {seq_list[j]}, using a window size of {window_lengths[0]}.... \n"
)
else:
print(
f"Building pairwise matrices for {seq_list[i]} and {seq_list[j]}, using a minimum window size of {window_lengths[0]}.... \n"
)

Removing the print statement allowed the plots to finish up correctly.

@alexsweeten
Copy link
Member

Thanks for the catch, Alex. This should be fixed in v0.8.1 of ModDotPlot.

Certain versions of numpy are unable to parse this. I modified the print statement to work for all np versions.

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

2 participants