read data first and select channels, then do analysis. It should be faster