Motility and responses to cell-cell contact are responsible for aggregation in the nitrogen-fixing cyanobacterium Trichodesmium.