fasta_identifier_isdecoy | R Documentation |
regex test if a protein identifier or fasta header is a decoy
fasta_identifier_isdecoy(x)
x |
strings to test |
## Not run:
# decoy examples (should yield TRUE)
fasta_identifier_isdecoy(c(
">rev_sp|A0A023PZB3|FMP49_YEAST Protein FMP49, mitochondrial ...",
"rev_sp|A0A023PYF4|YE145_YEAST",
"decoy_A0A023PZF2",
"P63044_decoy",
"P63044_rev",
"P63044_reverse",
">sp|Q02956|KPCZ_MOUSE_decoy",
">decoy_sp|Q02956|KPCZ_MOUSE"
))
# non-decoy examples (should yield FALSE)
fasta_identifier_isdecoy(c(
">sp|A0A023PZB3|FMP49_YEAST Protein FMP49, mitochondrial ...",
"sp|A0A023PYF4|YE145_YEAST",
"A0A023PZF2",
"P63044",
">sp|Q02956|KPCZ_MOUSE"
))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.