Sole data analyst in an academic lab, is authorship viable?
With that description, especially if you write up the technique used for the paper and any conclusions drawn, you should be a coauthor. Anything else is ethically suspect in my mind. You should talk about authorship with the primary author, the lab director, or the PI about this now rather than waiting for the analysis to start or the paper to start coming together. There's no better way for resentment to start than to wait for the thing to be nearly done for you to start the conversation about authorship.