View source: R/SmCCNet-source.R

getAbar | R Documentation |

Compute the similarity matrix based on the outer products of absolute canonical correlation weights, can be used for both single and multi-omics setting.

```
getAbar(Ws, FeatureLabel = NULL)
```

`Ws` |
A canonical correlation weight vector or matrix. If |

`FeatureLabel` |
A vector of feature labels for each feature in the adjacency matrix |

A `p\times p`

symmetric non-negative matrix.

```
w <- matrix(rnorm(6), nrow = 3)
Ws <- apply(w, 2, function(x)return(x/sqrt(sum(x^2))))
abar <- getAbar(Ws, FeatureLabel = c('omics1', 'omics2', 'omics3'))
```

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.