They literally throw a bucket overboard and bring it back up...
They literally throw a bucket overboard and bring it back up and take that water, with probably several thousand species of microbes, and they shotgun-sequence it and reconstruct what all the species were.