VisiData is a terminal application for exploring and analyzing tabular data. It is a powerful tool for data manipulation and visualization
VisiData is handy as it let us quickly check some tabular data without needing to download the file.
This tutorial will guide you through using VisiData (vd) to analyze the output of genomad, which is a TSV file with the following columns:
vd FILENAME
example:
vd ~/genomad-out/human_gut_assembly_summary/human_gut_assembly_virus_summary.tsv
q
to quit VisiData (you’ll be prompted to confirm).Esc
to go back or undo an action#
to set it as an integer type.%
to set it as a float type.[
and ]
Shift+F
to show frequency.Esc
to return to the main sheet.Let’s select rows in the “coordinates” column with “NA” as a value and remove them:
|
(pipe character) to open the select menu.NA
and press Enter. This selects all rows where “coordinates” is “NA”.d
to delete the selected rows.Enter
to confirm the deletion.Shift+?
to open the help menu for a full list of commands.Ctrl+Q
to quit without saving changes, or Shift+S
to save your work.Remember, Esc
is your friend! Use it whenever you want to go back or undo an action.