n_zones_PCA: Principal Component Analysis of the number of dense zones...

Description Usage Arguments Value Examples

View source: R/n_zones_PCA.R

Description

This function performs the Principal Component Analysis (PCA) of the number of dense zones obtained by varying the threshold on accumulation values obtained with the three methods of accumulation (TF, region, base). Before performing the PCA, the number of dense zone values are scaled with the scale R function. This function works only if the number of different threshold values used to find the dense zones with the dense_zones function is the same for all the three accumulation types, while the threshold values can be different.

Usage

1
n_zones_PCA(TF_zones, region_zones, base_zones, chr = NULL)

Arguments

TF_zones

a list with the results of the dense_zones function using the TF accumulation method and varying the thresholds on the considered accumulation values.

region_zones

a list with the results of the dense_zones function using the region accumulation method and varying the thresholds on the considered accumulation values.

base_zones

a list with the results of the dense_zones function using the base accumulation method and varying the thresholds on the considered accumulation values.

chr

optional argument, needed if the input was found with chr = "all"; a string or a vector containing strings with the name of the chromosome (e.g., "chr1")

Value

A list with a summary containing the standard deviation on each principal component, the proportion of variance explained by each principal component, the cumulative proportion of variance described by each principal component, and the loadings of each principal component. In addition, a plot with the variances of the principal components; a plot with the cumulate variances of the principal components and a plot with the loadings of the three principal components.

Examples

1
2
3
4
5
6
# loading data
data("data_man")
# TF_dense_w_10, reg_dense_w_10, and base_dense_w_10 are in the
#data_man collection of datasets
# PCA
n_zones_PCA(TF_dense_w_10, reg_dense_w_10, base_dense_w_10)

TFHAZ documentation built on Nov. 8, 2020, 5:05 p.m.