anvi-script-transpose-matrix

Transpose a TAB-delimited file.

🔙 To the main page of anvi’o programs and artifacts.

Authors

Requires

view-data functions-txt misc-data-items-txt misc-data-layers-txt gene-calls-txt linkmers-txt

Provides

view-data functions-txt misc-data-items-txt misc-data-layers-txt gene-calls-txt linkmers-txt

Usage

This is a script that transposes tab-delimited files. That’s it.

It’s helpful to get your inputs to line up with the types of inputs that anvi’o expects. Some programs have the --transpose flag, which will run this program for you, but some don’t, and that’s when you’ll have to run it yourself.

For example, anvi’o expects view-data to have each column representing a sample. If the file that you want to integrate into your anvi’o project has the samples as rows and the data attribute as the columns, then you’ll need to anvi-script-transpose-matrix it.

An Example Run

If you have an input ile INPUT.txt that looks like this:

1   2   3
4   5   6
7   8   9
10  11  12

And you run this:

anvi-script-transpose-matrix -o INPUT_transposed.txt \ -i INPUT.txt

You’ll get a file called INPUT_transposed.txt that looks like

1   4   7   10
2   5   8   11
3   6   9   12

Edit this file to update this information.

Command line interface

The following is the list of parameters and their descriptions in the latest version of anvi-script-transpose-matrix.

The code that generates this web page ensures that this information is the latest available in 9-dev (eunice). Which means, in some cases the information in this section (generated automatically) might be more comprehensive or up-to-date compared to the descriptions above (written by humans).


Command line usage

anvi-script-transpose-matrix [-h] -o MATRIX_FILE MATRIX_FILE

Parameters and their descriptions

positional arguments
MATRIX_FILE required
Input matrix.
options
-o, --output-file MATRIX_FILE required
File path to store results.

Additional Resources

Are you aware of resources that may help users better understand the utility of this program? Please feel free to edit this file on GitHub. If you are not sure how to do that, find the __resources__ tag in this file to see an example.