predSexLab: Use a particular sex labeling fit to label an input dataset

Description Usage Arguments Value

View source: R/runSexLab.R

Description

Use a particular sex labeling fit to label an input dataset

Usage

1
2
predSexLab(fit, expr_mat, numeric_lab = TRUE, scores = FALSE,
  ret_expr = FALSE)

Arguments

fit

a sex labeling fit object

expr_mat

data frame to label - rows are genes, columns are samples, values are ranks

numeric_lab

if FALSE, the output is "female/male", otherwise it is numeric (0/1)

scores

whether to return the scores, defaults to FALSE

ret_expr

whether to return the expression values, defaults to FALSE

Value

sex_lab - a list of sex labels (0/1 or "female"/"male") if 'scores' is specified, the result is a data.frame with columns for the f, m scores and the sex label if 'ret_expr' is specified, a list is returned, "sl" are the sex labels (as list or df), "f_mat" and "m_mat" contain the expression or ranks of the genes that go into the score


erflynn/exprsex documentation built on Feb. 23, 2020, 2:34 a.m.