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

TypeError: sequence item 0: expected str instance, numpy.bytes_ found #631

Closed
dpryan79 opened this issue Nov 27, 2017 · 1 comment
Closed
Assignees
Labels

Comments

@dpryan79
Copy link
Collaborator

This was reported via Galaxy. If one uses --outFileCorMatrix (possibly only under python 3), the following error occurs:

Traceback (most recent call last):
  File "/export/tool_deps/_conda/envs/[email protected]/bin/plotCorrelation", line 11, in <module>
    main(args)
  File "/export/tool_deps/_conda/envs/[email protected]/lib/python3.5/site-packages/deeptools/plotCorrelation.py", line 224, in main
    corr.save_corr_matrix(args.outFileCorMatrix)
  File "/export/tool_deps/_conda/envs/[email protected]/lib/python3.5/site-packages/deeptools/correlation.py", line 168, in save_corr_matrix
    file_handle.write("\t'" + "'\t'".join(self.labels) + "'\n")
TypeError: sequence item 0: expected str instance, numpy.bytes_ found

I'm testing if this is python 3 only now.

@dpryan79 dpryan79 added the bug label Nov 27, 2017
@dpryan79 dpryan79 self-assigned this Nov 27, 2017
dpryan79 added a commit that referenced this issue Nov 27, 2017
@dpryan79
Copy link
Collaborator Author

My fix branch seems to solve the problem. I've made this live on our public Galaxy instance, but since no one else has mentioned this issue I suspect not many others are using this particular feature (or if so, they're using python 2). I'll hold off on making an actual release from this until someone else mentions bumping into it (otherwise, it'll just get fixed in deepTools 3).

@dpryan79 dpryan79 closed this as completed Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant