hacky helper funs for analysis
see channel_by_slice.py
fix merge conflict