WDFY4 and Familial prostate cancer: These results not only elucidate the temporal dynamics of prostate cancer progression but also identify trajectory-dependent genes, such as ASCL1 and WDFY4, as potential biomarkers for NEPC.