filter_genomes: Filter the genomes of a tidygenomes object

View source: R/handlers.R

filter_genomesR Documentation

Filter the genomes of a tidygenomes object

Description

This function applies dplyr::filter() to the genomes table of a tidygenomes object and subsequently filters all other components of the tidygenomes object to retain only the requested genomes. It is also possible to filter on variables of the phylogroups table, if present.

Usage

filter_genomes(tg, ...)

Arguments

tg

A tidygenomes object

...

Filtering expression to pass on to dplyr::filter()

Value

A tidygenomes object

Examples

genomes <- data.frame(genome = c("genome 1", "genome 2"))
tg <- as_tidygenomes(genomes)
tg <- filter_genomes(genomes, genome == "genome 1")


SWittouck/tidyorthogroups documentation built on Feb. 2, 2023, 12:45 a.m.