I don't think this will work, I specifically have in mind the case where the sample ids have the `_0` characters in the middle of the string, for example `some_0_sample_name_0`. Hence we probably need to do it as a two step process:

```python

# if this condition is not met then we cannot proceed
assert coords_headers[index].endswith('_0'), "There's an internal inconsistency with the sample ids"
sample_id = coords_headers[index][:-2]
```