Identify samples that are outside of 3 times the interquartile range of principal components that explain at least 7.5% of variance in each tissue. Use only the 10,000 most variable peaks. Outlier calling is performed separately in each sex. This specifies ATAC-seq outliers excluded from differential analysis by MoTrPAC.
Value
NULL if there are no outliers, or a data frame with three columns and one row per outlier:
viallabel
character, sample identifier
tissue
character, tissue abbreviation, one of MotrpacRatTraining6moData::TISSUE_ABBREV
reason
character, PC(s) in which the sample was flagged
See also
call_pca_outliers()
for workhorse function and plot_pcs()
for plotting function
Examples
if (FALSE) { # \dontrun{
atac_call_outliers("LIVER","/tmp")
atac_call_outliers(c("LIVER","BAT"),"/tmp")
} # }