pg2DNAbin: Convert SQL Query Result to DNAbin

Description Usage Arguments

View source: R/pg2DNAbin.R

Description

Convert a data frame as returned by dbGetQuery to an object of class DNAbin, possibly with confidence scores.

Usage

1
pg2DNAbin(pg, label, confid.scores, col.confid = 0, row.confid = 0)

Arguments

pg

A data frame as returned by dbGetQuery.

label

A vector of mode "character" giving the attributes for constructing the sequences labels, e.g. "taxon", "acc", or both.

confid.scores

A vector of mode "character" specifying if and how confidence scores will be returned. Use "ignore" to omit confidence scores. Other options are "all", "row.means", and "col.means". Confidence scores are returned as an attribute and can be accessed by attr(obj, "cs").

col.confid

A real number in the interval [0, 1] giving the confidence threshold for alignment columns (i.e. nucletide positions); only rows (i.e. taxa, sequences) or columns scoring equal or greater to min.confid will be selected.

row.confid

A real number in the interval [0, 1] giving the confidence threshold for alignment rows (i.e. taxa, sequences); only rows scoring equal or greater to min.confid will be selected.


heibl/megaptera documentation built on Jan. 17, 2021, 3:34 a.m.