Can someone else publish a paper based on independently achieving a result that is in a preprint of mine? I have a paper that is currently in review but that has been available via bioRxiv for a while. While my paper was in review, a paper was published elsewhere which essentially scoops my paper. I am wondering how this could affect my paper in review seeing as my results were available earlier. 

To clarify, I guess my question is about priority. We uploaded the manuscript because we were scared of being scooped. We thought that by uploading the manuscript, it would make it impossible for another group to publish the same results. The question is twofold: 


  Is it ethical that the other group published the same results whilst they were aware of the preprint? Secondly, would a journal take preprint priority into account when assessing a manuscript which has been scooped by another paper?
Do you know that they were aware of the preprint? Scoops are bound to be common if many groups are working on the same problem or starting to flesh out a new area with lots of low-hanging fruit. If they were aware of your preprint, and you can prove it, they should have cited your preprint at the very least, and you might get them to publish an errata with the citation. But, if they didn't know about it, they got there first, and you'll just have to accept that.