-
Notifications
You must be signed in to change notification settings - Fork 5
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
.vzg update- runtime error ('Type') #28
Comments
Hi, I'm getting the same error when updating the .vzg file. Were you able to fix it? Thank you! |
I've got the same error and the key for failing might be the step 1, which outputs: 2024-01-31 09:29:55,524 - . - INFO - installed versions: |
Hi, @wangbo00129 I also think that's most likely the issue. It seems that the segmentation step is not running properly but no error appears at the end. So far I've been unable to figure out where the issue is coming from. My experimental data matches the segmentation algorithm file and I've checked multiple times that VPT is installed correctly. Are you also using the cellpose_default_1_ZLevel.json provided by the authors in the example_analysis_algorithm folder? @timwiggin or @connor-yu4322 it would be really helpful for us if you could take a look at this issue when you get the chance. Have you encountered something like this in the past? Thank you! |
Have you checked that cellpose_micron_space.parquet, cell_by_gene.csv, cell_metadata.csv contain valid entries? I have been using vpt for a long time now and never got this error |
Hi, @pakiessling Are you referring to the files after running vpt? If so, the contents of the cell_by_gene.csv file and the cellpose_micron_space.parquet are incorrect. At least that's what I think when I compared them to the files received directly from Vizgen. I also do not have a cell_metadata.csv output. It seems like the issue comes from running cellpose, but because no error is provided at that step of the pipeline I'm not sure how to fix this. Have you also been using the json files suggested by the authors for your segmentation analysis? |
I am talking about the output of the vpt pipeline, yes.
Yes I also have used cellpose_default_1_ZLevel.json succesfully before. |
What I mean by "incorrect" is that the cellpose_micron_space.parquet is blank. It contains just the column headings and no cells because as I suggested the cellpose step of the pipeline did not work properly.
Consequently, the cell_by_gene.csv file is blank and no cell_metadata.csv file was created. |
Ok, that means the segmentation completely failed. I would run the VPT like this: Also try segmenting a part of your images with your Cellpose installation outside of the VPT pipeline (same parameters as the json file) |
Hi, I stopped encountering the previous issues when I installed vpt using the docker image provided by the authors. I had originally installed vpt in a conda environment and although no errors appeared during the installation process there seem to be some issues running the vpt commands inside this environment (maybe due to package dependencies). If anyone is encountering the issues mentioned by @katielong3768, @wangbo00129 and myself I recommend installing vpt using the docker image and trying the tutorial again to make sure everything is working fine. |
Hi everyone-
I am trying to run through the example dataset as described here:
https://vizgen.github.io/vizgen-postprocessing/analysis_vignettes/index.html
I am having an issue at the step 4, updating the .vzg file. When I run the following command:
vpt --verbose --processes 2 update-vzg
--input-vzg 202305010900_U2OS_small_set_VMSC00000/region_0/202305010900_U2OS_small_set_VMSC00000_region_0.vzg
--input-boundaries analysis_outputs/cellpose_micron_space.parquet
--input-entity-by-gene analysis_outputs/cell_by_gene.csv
--input-metadata analysis_outputs/cell_metadata.csv
--output-vzg analysis_outputs/202305010900_U2OS_small_set_VMSC00000_region_0_CellPose_PolyT.vzg
It returns back:
2023-11-20 17:51:34,498 - . - INFO - installed versions:
python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0]
vpt 1.1.2
vpt_core 1.0.0
geopandas 0.12.1
shapely 2.0.0
s3fs 2021.10.0
gcsfs 2021.10.0
rasterio 1.3.0
cellpose Not Installed
stardist Not Installed
2023-11-20 17:51:34,503 - . - INFO - Unpacking vzg file
2023-11-20 17:51:34,991 - . - INFO - 202305010900_U2OS_small_set_VMSC00000/region_0/202305010900_U2OS_small_set_VMSC00000_region_0.vzg unpacked!
2023-11-20 17:51:34,991 - . - INFO - Dataset folder: /home/user/vzg_build_temp/vzg_2023-11-20T17_51_34_503159/202305010900_U2OS_small_set_VMSC00000_region_0
2023-11-20 17:51:34,991 - . - INFO - Number of input genes: 140
2023-11-20 17:51:34,999 - . - ERROR - exception of type <class 'KeyError'> thrown: 'Type'
2023-11-20 17:51:34,999 - . - ERROR - vpt has encountered a runtime error ('Type') and will now exit
What is the nature of the runtime error ('Type') and what could be done to resolve this?
Thanks!
Katie
The text was updated successfully, but these errors were encountered: