Your PGY level in any GME program will reflect the number of years you have spent in clinical training activities with patient care duties. Years of PhD research don't count. Extra years taken for research during residency don't count. If you go to med school, work at a bank for 20 years, then do a residency... you are PGY-1, not PGY-20.