---
name: "ktGetTaxIDFromAcc"
section: "1"
platform: "linux"
package: "radiant"
version: "2.8.1+dfsg-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ktGetTaxIDFromAcc"
---

# ktGetTaxIDFromAcc(1)

explore hierarchical metagenomic data with zoomable pie charts

## NAME

ktGetTaxIDFromAcc - explore hierarchical metagenomic data with zoomable pie charts

## DESCRIPTION

Description:

-

  Translates accessions (from arguments or \<stdin\>) to NCBI taxonomy IDs. The accession can be bare or in the fourth field of pipe notation (e.g. "gi\|12345\|xx\|ABC123.1\|", ignoring fasta tag markers \["\>"\]). Inputs that are bare numbers will be assumed to be taxonomy IDs already and preserved. Accessions with no taxonomy IDs in the database will return 0.

Usage:

-

  ktGetTaxIDFromAcc \[options\] \[acc1 acc2 ...\] \[\< acc\_list\] \> tax\_ID\_list

-

  Command line example:

-

  ktGetTaxIDFromAcc A00001.1 A00002.1

-

  Fasta tag example:

-

  grep "\>" sequence \| ktGetTaxIDFromAcc \> sequence.tax

## OPTIONS

- \[-p\]

  Prepend tax IDs to the original lines (separated by tabs).

- \[-a\]

  Append tax IDs to the original lines (separated by tabs).

- \[-f\] \<integer\>

  Field of accessions. \[Default: '1'\]

- \[-tax \<string\>

  Path to directory containing a taxonomy database to use.
