plot_refseq_pq: Plot the nucleotide proportion of references sequences

plot_refseq_pqR Documentation

Plot the nucleotide proportion of references sequences

Description

lifecycle-experimental

It is a wrapper of the function plot_refseq_extremity_pq(). See ?plot_refseq_extremity_pq for more examples.

If hill_scale is not null, Hill diversity number are used to represent the distribution of the diversity (equitability) along the sequences.

Usage

plot_refseq_pq(
  physeq,
  hill_scales = NULL,
  first_n = min(Biostrings::width(physeq@refseq)),
  last_n = NULL,
  min_width = first_n
)

Arguments

physeq

(required): a phyloseq-class object obtained using the phyloseq package.

hill_scales

(vector) A vector defining the Hill number wanted. Set to NULL if you don't want to plot Hill diversity metrics.

first_n

(int, default 10) The number of nucleotides to plot the 5' extremity.

last_n

(int, default 10) The number of nucleotides to plot the 3' extremity.

min_width

(int, default 0) Select only the sequences from physeq@refseq with using a minimum length threshold. If first_n is superior to the minimum length of the references sequences, you must use min_width to filter out the narrower sequences

Value

A ggplot2 object

Author(s)

Adrien Taudière

Examples

plot_refseq_pq(data_fungi)
plot_refseq_pq(data_fungi, hill_scales = c(2), first_n = 300)


adrientaudiere/MiscMetabar documentation built on Dec. 19, 2024, 3:16 a.m.