In fact, the CDC (Center for Disease Control and Prevention) in its studies comparing the various water treatments highlights the absolute effectiveness of the osmosis process in removing various microbes.
Reverse osmosis systems are very effective in removing protozoa (for example, Cryptosporidium, Giardia);
Reverse osmosis systems are very effective in removing bacteria (for example, Campylobacter, Salmonella, Shigella, E. coli);
Reverse osmosis systems have very high efficacy in removing viruses (for example Enteric, Hepatitis A, Norovirus, Rotavirus);
Reverse osmosis systems will remove common chemical contaminants (metal ions, aqueous salts), including sodium, chloride, copper, chromium and lead; can reduce arsenic.
In conclusion, this CDC study confirms that osmosis is the only highly effective water treatment, even compared to any other treatment, in removing pathogens if present in the water.