visqc_cor_pca_scores: correlate scores and outcome

View source: R/principal_component_testing.R

visqc_cor_pca_scoresR Documentation

correlate scores and outcome

Description

Given a matrix of PCA scores, set of sample attributes to test, goes through and performs an ICI-Kt of the scores versus the attribute.

Usage

visqc_cor_pca_scores(pca_scores, sample_info)

Arguments

pca_scores

the scores matrix to test

sample_info

data.frame of sample attributes to test

Important: All of the attributes must be numeric, or character. If character, they will be transformed to a factor, and the numeric factor levels will be used instead. If missing values are present, that is OK, as long as they are missing-not-at-random (i.e. missing at the low end of the values).

Value

data.frame


MoseleyBioinformaticsLab/visualizationQualityControl documentation built on Feb. 21, 2024, 1:06 a.m.