Move code from getAllAlignments() into getResponseRanks()