- SQM
A SQM, SQMbunch or SQMlite object.
- pathway_id
character. The five-number KEGG pathway identifier. A list of all pathway identifiers can be found in https://www.genome.jp/kegg/pathway.html.
- count
character. Either "abund"
for raw abundances, "percent"
for percentages, "bases"
for raw base counts, "tpm"
for TPM normalized values or "copy_number"
for copy numbers (default "copy_number"
). Note that a given count type might not available in this object (e.g. TPM or copy number in SQMlite objects originating from a SQM reads project).
- samples
character. An optional vector with the names of the samples to export. If absent, all samples will be exported (default NULL
).
- split_samples
logical. Generate a different output file for each sample (default FALSE
).
- sample_colors
character. An optional vector with the plotting colors for each sample (default NULL
).
- log_scale
logical. Use a base 10 logarithmic transformation for the color scale. Will have no effect if fold_change_groups
is provided (default FALSE
).
- fold_change_groups
list. An optional list containing two vectors of samples. If provided, the function will generate a single plot displaying the log2 fold-change between the median abundances of both groups of samples ( log(second group / first group) ) (default NULL
).
- fold_change_colors
character. An optional vector with the plotting colors of both groups in the fold-change plot. Will be ignored if fold_change_group
is not provided.
- max_scale_value
numeric. Maximum value to include in the color scale. By default it is the maximum value in the selected samples (if plotting abundances in samples) or the maximum absolute log2 fold-change (if plotting fold changes) (default NULL
).
- color_bins
numeric. Number of bins used to generate the gradient in the color scale (default 10
).
- rescale_percent
logical. Calculate percent counts over the number of reads in the input object, instead of over the total number of reads in the original project (default FALSE
).
- output_dir
character. Directory in which to write the output files (default "."
).
- output_suffix
character. Suffix to be added to the output files (default "pathview"
).