Description Usage Arguments Value Author(s) Examples
Enhanced grep function which can search with multiple patterns.
1 | grepPatternList(patternList, x, combine=c("or", "and"), ...)
|
patternList |
The |
x |
See the argument |
combine |
When it's "or", for each element of x, a TRUE value will be returned if it matches to at least one of the pattern list. When it's "and", a TRUE value will be returned only if it matches to all of the pattern list. |
... |
Other arguments passed into |
A logical vector of length(x).
Ge Tan
1 2 3 4 5 6 7 8 | patternList <- c("R1_001.fastq.gz", "R1.fastq.gz", "R1.fastq",
"F3.csfasta")
x <- c("nanocage_ACAGAT_carp_embryo_R1.fastq.gz",
"nanocage_CACGAT_carp_hk_control_R1.fastq.gz",
"nanocage_CACTGA_carp_hk_Tborreli1_R1.fastq.gz",
"nanocage_CTGACG_carp_hk_Tborreli2_R1.fastq.gz")
grepPatternList(patternList, x, combine="or")
grepPatternList(patternList, x, combine="and")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.