A three-dimensional macroporous PAn-based electrode was developed for the sensitive detection of alpha-fetoprotein, which can be associated with several conditions, including hepatocellular carcinoma, metastatic disease affecting the liver, nonseminomatous germ cell tumor, or yolk sac tumor. This evidence concerns the gene AFP and yolk sac tumor.