effector.summary {effectR} | R Documentation |
Returns non-redundant sequences from hmm.search or regex.search and generates a motif table
Description
This function summarize the results from regex.search
or hmm.search
.
Usage
effector.summary(hmm.result, motif = "RxLR", reg.pat = NULL)
Arguments
hmm.result |
A list of |
motif |
A character string indicating the motif of interest. Motifs for two cytoplasmic effectors are added to the function: |
reg.pat |
A character string indicating the REGEX pattern for the |
Value
A list of two objects: Summary motif table and non-redundant sequences (only with results of hmm.search
)
Examples
## Not run:
fasta.file <- system.file("extdata", "test_infestans.fasta", package = "effectR")
ORF <- seqinr::read.fasta(fasta.file)
REGEX <- regex.search(ORF, motif='RxLR')
candidate.rxlr <- hmm.search(original.seq = fasta.file, regex.seq=REGEX, num.threads = 2)
effector.summary(candidate.rxlr)
# Custom motifs
reg.pat <- "^\\w{50,60}[w,v]"
REGEX <- regex.search(sequence = ORF, motif = "custom", reg.pat = reg.pat)
candidate.custom <- hmm.search(original.seq = fasta.file, regex.seq = REGEX)
effector.summary(candidate.custom, motif = "custom", reg.pat = reg.pat)
## End(Not run)