Count lines (sequences if fasta file) matching a pattern. Accepts gzip files. May not work on Windows.
Examples
db <- system.file("extdata", "example_unite.fasta", package = "dbpq")
count_pattern_db(db, "Amanita")
#> [1] 2
Count lines (sequences if fasta file) matching a pattern. Accepts gzip files. May not work on Windows.
db <- system.file("extdata", "example_unite.fasta", package = "dbpq")
count_pattern_db(db, "Amanita")
#> [1] 2