MASHUOA / HiTMaP

An R package of High-resolution Informatics Toolbox for Maldi-imaging Proteomics
GNU General Public License v3.0
15 stars 12 forks source link

Clustering imaging issue #3

Closed xiweifan closed 6 months ago

xiweifan commented 3 years ago

Hi George,

Hope you are doing well!

I feel there is something that needs to be rectified to generate a clustering image.

Here is the code you used for clustering image: (https://github.com/MASHUOA/HiTMaP/tree/1.0.1)

library(magick) p_cluster1<-image_read(paste0(wd,"/Summary folder/cluster Ion images/791_cluster_imaging.png")) print(p_cluster1)

A tibble: 1 x 7

format width height colorspace matte filesize density

1 PNG 1980 1308 sRGB TRUE 302087 118x118

I think it should be: p_cluster1<-image_read(paste0(wd,"/Summary folder/cluster Ion images/unique/791_cluster_imaging.png"))

Moreover, I can not generate an image like this: image

But the pictures like this:

34554_cluster_imaging

I am wondering if there is anything wrong with my code?

Thanks, Xiwei

MASHUOA commented 3 years ago

Hi, Xiwei Sorry for my slow reply. Sure, may I confirm whether you are running the same script with example data and your data in the same environment? orca package mentioned in the tutorial .md file is the module that generates this table. If the error exists, you may need to configure the orca library in your singularity image to make sure it's working properly. Another possible reason will be the cluster image rendering function cannot find the candidate_list object. You can set export_Header_table=TRUE to make sure this procedure will be executed. Let me know if there's an error message. Best, George