extract_run_id | R Documentation |
Extract SRR/ERR/DRR run IDs from string
extract_run_id(
x,
search = "(SRR[0-9]+|DRR[0-9]+|ERR[0-9]+)",
only_valid = FALSE
)
x |
character vector to search through. |
search |
the regex search, default: |
only_valid |
logical, default FALSE. If TRUE, return only the hits. |
a character vector of run accepted run ids according to search, if only_valid named character vector for which indices are returned
search <- c("SRR1230123_absdb", "SRR1241204124_asdasd", "asd_ERR1231230213",
"DRR12412412_asdqwe", "ASDASD_ASDASD", "SRRASDASD")
ORFik:::extract_run_id(search)
ORFik:::extract_run_id(search, only_valid = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.