Imaging-transcriptomics icon indicating copy to clipboard operation
Imaging-transcriptomics copied to clipboard

Confusion about the results of `boot_genes` in PLS analysis

Open LuuuXG opened this issue 7 months ago • 0 comments

In pls.py, lines 148-151:

image

I am confused about why it is orig. for genes and z-score, but boot. for the p-value and adjusted p-value. As in genes.py, within the compute() function, _p_val and _p_corr seem to be ordered according to _index, which is the order of _z, rather than the original order. Although the two orders are similar, that is how the bootstrap process works.

In other words, in the output file pls_component_*.tsv, the order of the genes is the SAME as their order from the initial PLS regression result (in genes.py, line 120). This is really confusing.

Additionally, in genes.py, within the gsea function, the orig.genes is again used. If this is the case, why do we need to conduct the bootstrap of genes and get boot.genes?

I would appreciate any clarification on this matter.

LuuuXG avatar Jul 24 '24 16:07 LuuuXG