Learn R Programming

blit (version 0.1.0)

kraken2: Running Kraken2

Description

Kraken is a taxonomic sequence classifier that assigns taxonomic labels to DNA sequences. Kraken examines the k-mers within a query sequence and uses the information within those k-mers to query a database. That database maps k-mers to the lowest common ancestor (LCA) of all genomes known to contain a given k-mer.

Usage

kraken2(
  fq1,
  ...,
  fq2 = NULL,
  ofile = "kraken_output.txt",
  report = "kraken_report.txt",
  classified_out = NULL,
  unclassified_out = NULL,
  odir = getwd(),
  kraken2 = NULL
)

Value

A command object.

Arguments

fq1, fq2

A string of fastq file path.

...

<dynamic dots> Additional arguments passed to kraken2 command. Empty arguments are automatically trimmed. If a single argument, such as a file path, contains spaces, it must be quoted, for example using shQuote. Details see: cmd_help(kraken2()).

ofile

A string of path to save kraken2 output.

report

A string of path to save kraken2 report.

classified_out

A string of path to save classified sequences, which should be a fastq file.

unclassified_out

A string of path to save unclassified sequences, which should be a fastq file.

odir

A string of path to the output directory.

kraken2

A string of path to kraken2 command.

See Also