The sex is computed by normalising the identifier using fc_neuron and then using the middle letter (e.g. -M-) to identify the sex.

fc_sex(x, ignore.case = TRUE)

Arguments

x

Vector of flycircuit identifiers (integer idid, chaacter/factor gene_name/Name)

ignore.case

whether to ignore the case of the input.

Value

a character vector with values "M", "F" or NA_character_

Examples

fc_sex(1)
#> [1] "M"
fc_sex(c("FruMARCM-M001589_seg001","TPHMARCM-596M_seg1"))
#> [1] "M" "M"