An example of metaphor and simile in science journalism
"…while I was working in antibiotic discovery, I barely managed to even annoy real bacteria, much less kill them!
That's because they live fundamentally different sorts of lives. Human cells are surrounded by their close friends and partners, and they have the standing army of the immune system to protect them. They have their waste hauled away and their food delivered, and they're constantly being monitored for any signs of distress. Bacteria, though, are living their lives in the natural state as described by Thomas Hobbes in Leviathan: a war of all against all, where life is 'solitary, poor, nasty, brutish, and short'. Compared to a typical eukaryotic cell, a free-living bacterium is like a tiny attack submarine. It's far more mobile and well-armored, and it has to take care of its own defense while seeking out its own food sources (all while surrounded by organisms that are trying to do likewise!)"
Lowe, D. (2023, September). Surviving in the war of all against all. Chemistry World, 20, 10. https://www.chemistryworld.com/opinion/surviving-in-the-war-of-all-against-all/4017921.article
I have classed the submarine comparison as a simile rather than an analogy, although reasons are given for the comparison and a contrast is made (bacterium to a eukaryotic cell) as it is not suggested what the eukaryotic cell is like (perhaps a ship in a protected convey?)
Read about examples of science similes