Thanks for your reply Kevin. My data is a table containing groups of bacteria in the rows and in the columns there are genes or gene families. When I mentioned phenotypes in the original question, I actually meant "taxa". So my idea is that I can use PLNK to show that certain genes are uniquely present in certain closely related groups of bacteria (say subspecies or strains) or that they are "associated" with a particular taxon. For example: species 1 has gene X that is not present in species 2 , 3, 4 and 5. I am guessing ploidy is a limitation that could be addressed by formatting the data table in a way that it resembles a diploid organism. Here is an example of the table I have.
https://drive.google.com/open?id=1Hzj26cT3rHHT5zTvegkTHN6dVmB7naVu
Converting to binary is a must, as far as I remember. After that I'm quite lost.
Thanks for your help