An example of anthropomorphising science:
"Mathematics is usually considered, especially by mathematicians, the Queen of all Science and, being a queen, it naturally tries to avoid morganatic relations with other branches of knowledge. …
But although mathematics likes to be pure and to stand quite apart from other sciences, other sciences, especially physics, like mathematics, and try to 'fratenize' with it as much as possible."
George Gamow (1961) One, Two, Three…Infinity. Facts and speculations of science, Revised Edition, Dover Publications, Inc., New York.
This is written in a humorous style so it should be clear to readers that the anthropomorphisms (maths and sciences liking, trying) is not to be taken to seriously.
Read examples of anthropomorphism in science
Fraternize is put in 'scare quotes' to mark this is not meant literally (a simile). It is also notable that, although a Queen, mathematics is described as an 'it' not as a 'she' (as when personified).
Read about examples of science similes
Read about personification in science texts
Read examples of personifying nature
Read other examples of personification