I finished my master's degree several years ago, where I was responsible for developing/programming algorithms for a biochemistry lab. I have since successfully transitioned into industry and have been working ever since. I also have a very good relationship with my former PI.
Some time ago, my former PI contacted me and I did some work for him, pro-bono, and he was interested in publishing the results. I personally had no interest in the actual publication, but I did this work more so because it allowed me to explore an area of mathematics in which I had limited experience.
Lo and behold, I receive the manuscript for edits, and a student completely unrelated to this work was listed as the first author!
Under normal circumstances, I wouldn't care. Academia was only a stepping stone in my life and a publication doesn't benefit me in any way. However, something feels "wrong" about just listing someone who has not contributed to this work in any way as the first author. I would like to be listed as the first author. At the same time, I want to keep a good relationship with my former PI. What are my next steps? How do I go about this?
Edit: Based on the feedback so far, I think the next best step would be to follow up with the PI and determine what the student's contribution was. Perhaps the student did indeed use the results I obtained to actually write the manuscript, in which case I would have no problem letting the student take first authorship. Again, as of right now, I only see work that my former PI has done, so I want to clarify.
Edit 2: I think there is some confusion about how many authors there are in this paper. There is me, who wrote the algorithm and there is my PI, who wrote the paper based on my results. Would I deserve first authorship if this a multi-author publication? Absolutely not. But by default, since myself and my PI are the only persons who have worked on this, either one of us can take first author role.
I received an update from the PI. The student was placed on the paper because the student was "supposed to contribute" but they did not want to learn how to use git
(which is how I initially decided to version any manuscripts I worked on). The PI has made a promise to make sure the student takes the lead in terms of writing the paper and learning how to use git
.