Maybe others will know better about the F specifically, but when you do apply, I'd probably recommend taking a relatively large list of schools. Given your strong research background but somewhat rocky grades, you may see more variability in acceptances. You may get top 10 admissions from schools that love your research background, and top 30 rejections from schools concerned about the F or withdrawals.