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

gemc_to_h5ad UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 #2

Open
Melany-OY opened this issue Jul 14, 2024 · 0 comments
Open

Comments

@Melany-OY
Copy link

Hi, I came across a problem when I convert gemc to h5ad with mask file

My code is
./Python-3.8.18/bin/python ./GEM3D_toolkit-dev/GEM_toolkit.py gemc_to_h5ad -i A05640B8_cell_mask_correct_filter.gem -o A05640B8_cell_mask_correct_filter.image.h5ad -m A05640B8_cell_mask_correct_filter.tif

The output error looks like this
Traceback (most recent call last):
File "./GEM3D_toolkit-dev/GEM_toolkit.py", line 141, in
gemc_to_h5ad_main(sys.argv[2:])
File "./GEM3D_toolkit-dev/gemtk/gemc_to_h5ad.py", line 64, in gemc_to_h5ad_main
masks = np.loadtxt(cellmask,dtype=int,delimiter=' ')
File "./Python-3.8.18/lib/python3.8/site-packages/numpy/lib/npyio.py", line 1338, in loadtxt
arr = _read(fname, dtype=dtype, comment=comment, delimiter=delimiter,
File "./Python-3.8.18/lib/python3.8/site-packages/numpy/lib/npyio.py", line 999, in _read
arr = _load_from_filelike(
File "./Python-3.8.18/lib/python3.8/codecs.py", line 322, in decode
(result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb6 in position 78: invalid start byte

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

1 participant