Transform with trCommand line · 0/4 steps

Change casestep 1 of 4 · beginner

Support

The command is shown. Click it to run, or type your own.

By the end of this lesson you can
  • Map one set of characters to another with tr 'A-Z' 'a-z'
  • Remove characters entirely with tr -d
  • Collapse runs of repeats with tr -s
  • Slot tr into a longer pipeline

Before you startThe pipe |, plus cut, sort, and uniq.

tr 'A-Z' 'a-z' maps every uppercase letter to lowercase. The two sets line up position by position.

Lowercase the gene names on chromosome 1.

BRCAA-Z
brcaa-z
tr lines the two sets up position by position: every A becomes a, every B becomes b, and so on.
Note

Unlike most tools, tr won't take a file name, it reads only from standard input. That's why every tr command starts with something feeding it, usually cat file | or an earlier stage of a pipeline.

workspace · terminal

Type a command, or click the suggested one. ↑/↓ recall history, Tab completes file names. New to this? Hit Explain this command to see it in plain English.

…
workspace/shared/data0 files
Booting the WebAssembly runtime…
Command line0 / 4 stepsStep 1WASM shell