A cleaner way of formatting this error message (and the one below it) is:

```
raise ValueError("Unknown sample ID supplied (%s). Make sure..." % id_set)
```