Skip to contents

Get the PCA projection coordinates for a dataset

Usage

get_pca_coordinates(sum_exp, which_pca = "small", assay_to_use = "avg_ranking")

Arguments

sum_exp

A summarized experiment object

which_pca

A string stating which PCA object to use to get the coordinates. Two options available: "small" or "big". The "small" option uses the fit with only 1044 genes. The "big" option uses the one with all the 8000+ genes, used for the regression of the data.

assay_to_use

A string stating the name of the slot in the Summarized Experiment object from which the PCs will be obtained.

Value

A dataframe. The PC coordinates are returned for the new dataset

Examples

if (FALSE) { # \dontrun{
get_pca_coordinates(
    scanb,
    which_pca = "small",
    assay_to_use = "avg_ranking"
)
} # }