Learn R Programming

DECIPHER (version 1.16.0)

IdentifyByRank: Identify By Taxonomic Rank

Description

Identifies sequences by a specific level of their taxonomic rank.

Usage

IdentifyByRank(dbFile, tblName = "DNA", level = Inf, add2tbl = FALSE, verbose = TRUE)

Arguments

dbFile
A SQLite connection object or a character string specifying the path to the database file.
tblName
Character string specifying the table where the rank information is located.
level
Level of the taxonomic rank. (See details section below.)
add2tbl
Logical or a character string specifying the table name in which to add the result.
verbose
Logical indicating whether to print database queries and other information.

Value

A data.frame with the rank and corresponding identifier as "id".

Details

IdentifyByRank simply identifies a sequence by a specific level of its taxonomic rank. Requires that rank information be present in the tblName, such as that created when importing sequences from a GenBank formatted file.

The input parameter level should be a non-zero integer giving the ``level'' of the taxonomic rank to choose as the identifier. Negative levels are interpreted as that being many levels from the last level in each rank.

If the specified level of rank does not exist then the closest rank is chosen. Therefore, the default level (Inf) will always select the last taxonomic level (e.g., species).

See Also

FormGroups

Examples

Run this code
db <- system.file("extdata", "Bacteria_175seqs.sqlite", package="DECIPHER")
ids <- IdentifyByRank(db)

Run the code above in your browser using DataLab