There is no American Girl doll store near St. Patrick's Cathedral in Manhattan, so a direct subway trip between them doesn't exist.
Walk: ~10 minutes (0.4 miles) west on 50th/51st St to Rockefeller Plaza.
Subway: Take E or M downtown one stop from 5th Ave/53rd St to 47th–50th Sts/Rockefeller Center, then walk 2 blocks north.
No single subway line connects them directly—walking is fastest.