Usually a biopsy is not needed to diagnose liver cancer.But,the health care provider may remove a sample of tissue. A pathologist will examine the tissue under a microscope to look for cancer cells.