Ranks the values within each column (the genes within each cell), with ties given the minimum rank, and rescales the ranks to 0 to 1: (rank - 1)/(nrow(X) - 1). A sparse matrix with no negative values stays sparse, because its zeros have rank 1 and therefore stay 0.

RTassay(X)

Arguments

X

A gene by cell matrix.

Value

Rank transformed gene by cell matrix (sparse).