Skip to main content

Transpose Matrix

transpose-matrix

Transpose the rows and columns of tab-delimited matrix data.

(a1,1⋯a1,n⋮⋱⋮⋮⋱⋮am,1⋯am,n)→(a1,1⋯⋯a1,m⋮⋱⋱⋮an,1⋯⋯an,m)\begin{pmatrix} a_{1,1} & \cdots & a_{1,n}\\ \vdots & \ddots & \vdots \\ \vdots & \ddots & \vdots \\ a_{m,1} & \cdots & a_{m,n} \\ \end{pmatrix} \rightarrow \begin{pmatrix} a_{1,1} & \cdots & \cdots & a_{1,m}\\ \vdots & \ddots & \ddots & \vdots \\ a_{n,1} & \cdots & \cdots & a_{n,m} \\ \end{pmatrix}

File Inputs (TAB/CDT Files)​

This tool processes TAB and CDT tab-delimited formatted files and CDT files store data. The script also supports bulk selection and processing of files.

Command Line Interface​

Usage:

java -jar ScriptManager.jar read-analysis transpose-matrix [-hV] [-z] [-l=<startCOL>]
[-o=<output>] [-r=<startROW>] <matrix>

Positional Input​

This tool takes a matrix file in TAB/CDT format for input.

Output Options​

OptionDescription
-o, --output=<output>specify output filename
-z, --gzipgzip output (default=false)

Coord Start Options​

OptionDescription
-r, --start-rowrow to start transposing the matrix (zero indexed)
-l, --start-colcolumn to start transposing the matrix (zero indexed)