Extracts the sequence identifier from the recognized fasta sequence headers.

parse_fasta_headers(headers)

Arguments

headers

A vector of characters

Value

A vector of characters

Examples

headers <- c(
    "gb|M73307|AGMA13GT",
    "gb|M73307|AGMA13GT",
    "emb|CAM43271.1|",
    "sp|P01013|OVAX_CHICK description"
)
parse_fasta_headers(headers)
#> [1] "M73307"     "M73307"     "CAM43271.1" "OVAX_CHICK"