Work around to expose plot_sexcheck to testing and export but also leverage targets function for skipping targets conditionally (see "targets::tar_cancel()").

conditional_plot_sexcheck(clean_metadata, count_df, biomart_results, sex_var)

Arguments

clean_metadata

A data frame with sample identifiers as rownames and variables as factors or numeric as determined by "sageseqr::clean_covariates()".

count_df

A counts data frame with sample identifiers as column names and gene Ids are rownames.

biomart_results

Output of "sageseqr::get_biomart()". Gene Ids are stored as rownames.

sex_var

Column name of the sex or gender-specific metadata.