The CD19+/PD-1+ : CD19+/PD-L1 B lymphocyte ratio below their prognostic value was perfect for discriminating between endometriosis and nondiseased patients. Here, CD274 is linked to endometriosis.