Closed adamyhe closed 3 months ago
char
usually means that you're using an 8-bit encoding, e.g., int8
. This is the default return from tangermeme's one-hot encode function so it's possible that switching over caused the issue somehow. I will try to look into this over the weekend.
Specifying dtype=torch.float
fixes the crashing issue for me (and hopefully doesn't introduce additional problems).
Hi Jacob,
I'm getting this rather weird error when using
bpnet negatives
to extract negative controls for training the bias ChromBPNet models:I'm still on numpy 1.26.4, so I don't think it's the new 2.0.0 update causing issues. I've cleaned the input bed files for only autosomes (attached a minimal example of the first 10 windows), and I'm using the cleaned male.hg19.fasta reference that ENCODE used (https://www.encodeproject.org/files/male.hg19/).
I've also tried running this using the tangermeme API, and I'm getting a similar error. I'm on bpnetlite version 0.8.1 and tangermeme 0.2.1. Any insights into this bug or possible workarounds would be greatly appreciated!
Adam