Antibiotics work against bacterial infections but are often prescribed to people with viral infections, which don't respond to the drugs. But a new gene test could show if a patient's infection is viral or bacterial.