Rankings off by one

27 views
Skip to first unread message

Blobby

unread,
May 27, 2025, 11:25:29 AMMay 27
to gsea-help
I'm noticing that whenever I run preranked GSEA, the rankings in the reports for different genes are one lower than the rankings in the RNK file. For example, the details page for a gene set says a gene is ranked 28, but when I go to the RankedListViewer in the software for the list I used, the same gene is shown with a ranking of 29.

Anthony Castanza

unread,
May 27, 2025, 12:22:27 PMMay 27
to gsea-help
Hello,

GSEA uses zero-based indexing for the ranked list. This is because GSEA is a java based application, and Java natively indexes arrays starting at zero, Python also uses this convention. Some software artificially "corrects" this when displaying to users, but GSEA doesn't.

-Anthony

Anthony S. Castanza, PhD
Curator, Molecular Signatures Database
Mesirov Lab, Department of Medicine
University of California, San Diego

On Tue, May 27, 2025, 8:25 AM Blobby <flippe...@gmail.com> wrote:
I'm noticing that whenever I run preranked GSEA, the rankings in the reports for different genes are one lower than the rankings in the RNK file. For example, the details page for a gene set says a gene is ranked 28, but when I go to the RankedListViewer in the software for the list I used, the same gene is shown with a ranking of 29.

--
You received this message because you are subscribed to the Google Groups "gsea-help" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gsea-help+...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/gsea-help/d95566a8-1f4d-42bd-9348-a4ca1bd493ecn%40googlegroups.com.

Blobby

unread,
May 27, 2025, 12:48:57 PMMay 27
to gsea-help
Great, thanks for the info. Just wanted to make sure I wasn't do anything wrong.
Reply all
Reply to author
Forward
0 new messages