Count lines (sequences if fasta file) matching a pattern.
Accepts gzip files. The pattern is a Perl-compatible regular expression
(see grepl()).
Examples
db <- system.file("extdata", "example_unite.fasta", package = "dbpq")
count_pattern_db(db, "Amanita")
#> [1] 2