write.edges: Compute and save network edges

View source: R/lib.R

write.edgesR Documentation

Compute and save network edges

Description

This function takes a network (in the form of a coexpression matrix) and trims some of the edges using the passed function fun. The resulting network is both returned and saved on disk.

Usage

write.edges(coexpression, outfolder, keep.weights = TRUE,
  overwrite = TRUE, fun = thinning_abs_threshold, ...)

Arguments

coexpression

a coexpression matrix, in long form, as the one returned by write.coexpressionMatrix

outfolder

the data folder where to save the results

keep.weights

boolean. If TRUE arc weights are kept. Defaults to FALSE.

overwrite

boolean. Should an existing edge file be overwritten on disk?

fun

edge filtering function, defaults to thinning_abs_threshold

...

extra arguments are passed to edge filtering function

Value

a trimmed network


ne1s0n/MTGOsc documentation built on April 20, 2022, 9:35 p.m.