fc_sex: return sex of the animal for one or more FlyCircuit...

View source: R/ids.R

fc_sexR Documentation

return sex of the animal for one or more FlyCircuit identifiers

Description

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

Usage

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)
fc_sex(c("FruMARCM-M001589_seg001","TPHMARCM-596M_seg1"))

jefferis/flycircuit documentation built on Feb. 4, 2023, 6:04 p.m.