tr(mat);
[as Matrix]
a transposed matrix object: the sample columns of the input matrix will become the gene feature rows of the generated matrix and vice versa.