
Generate Null Conservation TXI Distribution
Source:R/stat_null_conservation_txis.R
stat_generate_conservation_txis.RdGenerate a null distribution of transcriptomic index values for conservation testing by permuting phylostratum assignments.
Details
This function creates a null distribution by randomly permuting phylostratum assignments while keeping the expression matrix fixed. This preserves the expression structure while breaking the phylostratum-expression relationship. # Generate null TXI distribution # null_txis <- stat_generate_conservation_txis(strata_vec, expr_matrix, 1000)