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

Can't load the Volumetric cell data #5

Open
ShuleiWu opened this issue Oct 13, 2023 · 4 comments
Open

Can't load the Volumetric cell data #5

ShuleiWu opened this issue Oct 13, 2023 · 4 comments

Comments

@ShuleiWu
Copy link

ShuleiWu commented Oct 13, 2023

I would like to use the built-in function ramanspy.datasets.volumetric_cells(cell_type='THP-1', folder=None) from this Python package to load the dataset. However, the downloaded raw dataset files have the .wip file extension, while the provided function can only load .mat files.
I'm unsure how to proceed. I have attempted to convert the .wip files to .mat format, but it was unsuccessful.

@ShuleiWu ShuleiWu changed the title Can't lode Can't load the Volumetric cell data Oct 13, 2023
@ShuleiWu
Copy link
Author

dir_ = r'E:\pyworkspace\test\rdata\Kallepitis-et-al-Raw-data\Figure 3'
cells_volume = rp.datasets.volumetric_cells(cell_type='THP-1', folder=dir_)

File C:\ProgramData\anaconda3\Lib\site-packages\ramanspy\core.py:291, in SpectralVolume.from_image_stack(cls, image_stack)
288 if not utils.is_aligned(image_stack):
289 ValueError("Cannot create a spectral volume out of unaligned spectral images. Spectral axes must match.")
--> 291 return cls(np.dstack([image.spectral_data[..., np.newaxis, :] for image in image_stack]),
292 image_stack[0].spectral_axis)

File <array_function internals>:200, in dstack(*args, **kwargs)

File C:\ProgramData\anaconda3\Lib\site-packages\numpy\lib\shape_base.py:723, in dstack(tup)
721 if not isinstance(arrs, list):
722 arrs = [arrs]
--> 723 return _nx.concatenate(arrs, 2)

File <array_function internals>:200, in concatenate(*args, **kwargs)

ValueError: need at least one array to concatenate

@dgeorgiev21
Copy link
Collaborator

Thank you for reaching out!

Yes, the .wip file is a format that RamanSPy cannot parse directly. To load such files into RamanSPy, one needs to first convert them to MATLAB files, which can be done by using the manufacturer software. Unfortunately, this software is not freely available.

We are working with some of the authors of the original paper (Kallepitis, C. et al. Quantitative volumetric Raman imaging of three dimensional cell cultures. Nat. Commun. 8, 14843 doi: 10.1038/ncomms14843 (2017)) to make sure the corresponding MATLAB files are also provided in their Zenodo repository.

In the meantime, you may check out some of the other datasets available in RamanSPy.


If you find RamanSPy useful, please consider starring the project on GitHub! Your support means a lot!

@ShuleiWu
Copy link
Author

OK, thank you for your response

@lanery
Copy link

lanery commented Jan 18, 2024

Any update on this? I am running into the same issue. Would also be nice to add this in the documentation for this example until the .mat files are available and/or RamanSPy works with .wip files.

Presumably you have already converted the .wip files into .mat files given that you load the Kallepitis et al. dataset in the example notebook, no?

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

3 participants