Age, prostate-specific antigen (PSA) density (PSAD), systemic immune-inflammation index, cystatin C level, and the Prostate Imaging Reporting and Data System (PI-RADS) v2.1 score were significant predictors of prostate cancer (PCa) on multivariable logistic regression analyses (P < 0.05) and the five parameters were used to construct the XYFY nomogram. This evidence concerns the gene CST3 and Familial prostate cancer.