Infers gender using heterozygosity thresholds.

get.gender(sample.summary, threshM, threshF)

Arguments

sample.summary

Data frame with `Heterozygosity` column.

threshM

Numeric threshold for males.

threshF

Numeric threshold for females.

Value

Data frame with columns `heterozygosity` and `sex`.

Author

Roberto Higa

Examples

df <- data.frame(Heterozygosity = c(0.1, 0.3, 0.6))
rownames(df) <- c("A", "B", "C")
get.gender(df, 0.2, 0.5)
#>   heterozygosity sex
#> A            0.1   M
#> B            0.3   I
#> C            0.6   F