This function removes a single leading @ character
from each element of a character vector when present.
This is intended to deal with SAMtools > FASTQ translation
often prefixing read IDs with an "@", which can result
in read ID mismatches and metadata merging fails.
Value
character vector. The same string but with one "@" removed from each element that started with one.
Examples
strip_leading_at(c("read_1", "@read_2", "@@read_3", "", NA, NULL))
#> [1] "read_1" "read_2" "@read_3" "" NA
