Skip to contents

rtransparent joins the data/code identifiers it extracts with " ; ". This splits such a string (or a vector of them) into a trimmed character vector, dropping empties. rfair's id_parse() already understands the forms it emits (doi.org URLs, repository URLs, and identifiers.org prefix:accession codes such as geo:GSE123 or bioproject:PRJEB123).

Usage

split_identifiers(x, sep = " ; ")

Arguments

x

A character vector of identifier strings (each possibly joined).

sep

Separator used to join identifiers (default " ; ").

Value

A character vector of individual identifiers.

Examples

split_identifiers("https://doi.org/10.5061/dryad.x ; geo:GSE12345")
#> [1] "https://doi.org/10.5061/dryad.x" "geo:GSE12345"