Error - data type 'int64 for float64'
See original GitHub issueHi,
After multiple testing (v0.7.6), it seems that the cooler load and zoomify do not expect to deal with float values.
ValueError: cannot safely convert passed user dtype of int64 for float64 dtyped data in column 2
It means that only raw Hi-C counts can be loaded, but not normalized or transformed counts (pearson correlation maps, observed/expected, etc.) It would be great if future versions of cooler could fixed that to allow users to play with any type of data transformation and see them into HiGlass. Best N
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
TypeError: 'numpy.float64' object cannot be interpreted as an ...
Put simply, a numpy.float64 object cannot be used as an integer in your code; they are different data types. You must do some...
Read more >data type 'int64 for float64' · Issue #117 · open2c/cooler - GitHub
It means that only raw Hi-C counts can be loaded, but not normalized or transformed counts (pearson correlation maps, observed/expected, etc.)
Read more >Data Types and Formats – Data Analysis and Visualization in ...
The type int64 tells us that Python is storing each value within this column as a 64 bit integer. We can use the...
Read more >pandas.DataFrame.astype — pandas 1.5.2 documentation
Cast a pandas object to a specified dtype dtype . Parameters. dtypedata type, or dict of column name -> data type. Use a...
Read more >'numpy.float64' object cannot be interpreted as an integer
One error you may encounter when using NumPy is: TypeError: 'numpy.float64' object cannot be interpreted as an integer.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks, works!
Thanks @danydoerr. My mistake, I thought you were inputting a BG2-type file, where
count
is in column 7, but you were using a COO file. If you do--field count=3:dtype=float
, it will work. In fact, becausecount
is standard you can omit the column number so--field count:dtype=float
will work too.