produce_pca_df | R Documentation |
The PCA is produced using the TPM by default (can also be the ruvg counts;
see the ruvg_normalization
param)
produce_pca_df(
txi,
use_normalisation = "none",
min_counts = 5,
metadata = NULL,
id_metadata = NULL,
ncp = 2
)
txi |
The |
use_normalisation |
What kind of normalisation should be used instead of TPM? Can be either "none", "ruvg" or "combat". Default: "none" |
min_counts |
The minimal mean number of count (TPM by default; see also
the |
id_metadata |
The colname to use to join the metadata with the
coordinate table. Must contains all the sample names found in the txi. If
|
ncp |
Number of component to include in the graph. Default: 2. |
graph |
Produce the graph. |
metatada |
The metadata to add to the coordinate table to add color or
shape with the results and the |
Produce the PCA and silently returns a list
with the
coordinates and the x and y labels.
txi <- get_demo_txi()
res_pca <- produce_pca_df(txi)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.