A method to reorder a matrix by a vector

output_timesereis_based_on_genes(matrix, genes)

Arguments

matrix

A matrix

genes

The target genes in the row names of the matrix