•In patients with biliary tract cancer, KRAS variants were significantly associated with poor prognosis. The gene discussed is KRAS; the disease is biliary tract neoplasm.