Add API + tests for Swarm

`seq_ids[i] = seq_ids[i].rsplit("_", 1)[0]`