Find which strings are valid human chromosome names. The valid chromosome
names can be specified via the argument chromosomes.
is_human_chromosome(
string,
chromosomes = c(seq_len(22), "X", "Y", "MT"),
convert_NA_to_FALSE = TRUE
)A logical vector.
A character vector of strings.
A character vector of valid chromosome names. Default is autosomal chromosomes 1 thru 22 and, X, Y, and MT.
Whether to treat NA as NA
(convert_NA_to_FALSE = FALSE) or whether to return FALSE when
an NA is found (convert_NA_to_FALSE = TRUE).