Open Pedramto89 opened 1 year ago
Hi @RubD I hope you are well. I am still waiting for your response. In the cell proximity analysis in Giotto, I am not sure how we should visualize the statically significant results? Thnx!
hi @Pedramto89, the result from cellProximityEnrichment()
is a simple list.
The first element of the list is the raw simulation table data and the second element provides a data.table with information about enrichment and significance (e.g. fdr). You can work with the data.table or convert that into a data.frame if you want (e.g. as.data.frame(cell_proximity_results[[2]])
and then filter the results as you wish.
Thank you for your prompt response @RubD !
I guess you are referring to this:
"> str(cell_proximity_results)
List of 2
$ raw_sim_table:Classes ‘data.table’ and 'data.frame': 35023 obs. of 5 variables:
..$ unified_int: chr [1:35023] "NA--NA" "Malignant_1--Malignant_1" "Malignant_1--Malignant_3" "Fibroblast_2--Malignant_1" ...
..$ type_int : chr [1:35023] NA "homo" "hetero" "hetero" ...
..$ round : chr [1:35023] "original" "original" "original" "original" ...
..$ V1 : num [1:35023] 17096 608 86 274 301 ...
..$ orig : chr [1:35023] "original" "original" "original" "original" ...
..- attr(, ".internal.selfref")=
As you know, in most biological experiments, the statistical ajd.p.val cutoff is lower than 0.05;however, here, I see p.adj_higher and p.adj_lower which makes me confused about which one should I select as the cutoff? ALso, for the enrichm, I guess the more is the score, the more probable that two cells are close to each other spatially, and negative values show the opposite, am I correct? I tried to read the documentation but could not find any useful like.
Story
I did an analysis for cell-to-cell proximity and tried to visualize the results via heatmap built in function in giotto. However, I am not sure how in this code or plot, the FDR has been involved and should be interpreted.
...
Error Message
Expected behavior
I expected to see a kind of plot that involves the FDR results into the cell-to-cell proximity enrichment scores. I used this code: "cell_proximity_results <- cellProximityEnrichment( gobject = my_giotto_object,
spatial_network_name = "kNN_network",
cluster_column = "subcluster_combined", number_of_simulations = 1000,
adjust_method = "fdr",
set_seed = TRUE,
seed_number = 1234
)"
If applicable, add screenshots to help explain your problem. NOTE: Screenshots of the attempted function call and full error message(s) are helpful for troubleshooting!
System Information
Please replace the following according to your machine: