A peritoneal fluid culture is done to detect the presence of bacteria, or fungi which indicates the presence of an infection in the peritoneal cavity. The fluid is examined to check for red and white blood cells count, protein and albumin, etc. Sometimes, tests are also done to check for glucose, ammonia, amylase, alkaline phosphatase, and other substances.