coappearance.list: order each type of edges decreasingly in edge weights.

View source: R/coappearance.R

coappearance.listR Documentation

order each type of edges decreasingly in edge weights.

Description

order each type of edges decreasingly in edge weights.

Usage

coappearance.list(g, top = 10)

Arguments

g

a weighted graph object from igraph. By default, there are three types of edges: gene-gene, gene-trait, and trait-trait. Genes are recorded as "rsXXX", and traits do not start with "rs".

top

how many edges for display.

Examples

SR0 = readRDS(file = "/Users/zijungao/Dropbox/PathGPS/plot/source code/source data/metabolitesUMAP.rds")
coappearance.list(SR0$graph)


ZijunGao/latentMediator documentation built on April 24, 2022, 12:12 a.m.