n_zones_PCA {TFHAZ} | R Documentation

## Principal Component Analysis of the number of dense zones obtained with the three methods of accumulation (TF, region, base).

### 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

    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

    # 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)

[Package TFHAZ version 1.12.0 Index]